From: <tma...@no...> - 2004-07-22 14:49:56
|
>Hi James, > >> Also check for any buffers placed on the stack, and replace them with >> heap storage. > >Let me know if there is an easy way to do this. To me, this proposal soun= ds = >like weeks of work... > >And I don't think that >char *string =3D (char *)malloc(10); >is much safer than >char string=5B10=5D; > >The former might be harder to expoit, but it will introduce a whole lot o= f = >memleaks. and a performance problem =21 >The real problem is making sure the buffer is large enough. You have this= = >problem equally on the stack and on the heap. agreed >Michael cheers, Thibaut |