Related articles |
---|
C++ Compiler with a -Wwarn-use-of-strcpy or similar option?? psheer@WITHOUTicon.co.za (Paul Sheer) (2004-09-07) |
Re: C++ Compiler with a -Wwarn-use-of-strcpy or similar option?? christian.bau@cbau.freeserve.co.uk (Christian Bau) (2004-09-08) |
Re: C++ Compiler with a -Wwarn-use-of-strcpy or similar option?? kenrose@tfb.com (Ken Rose) (2004-09-13) |
Re: C++ Compiler with a -Wwarn-use-of-strcpy or similar option?? strohm@airmail.net (John R. Strohm) (2004-09-13) |
Re: C++ Compiler with a -Wwarn-use-of-strcpy or similar option?? psheer@icon.co.za (2004-09-14) |
From: | "John R. Strohm" <strohm@airmail.net> |
Newsgroups: | comp.compilers |
Date: | 13 Sep 2004 12:31:29 -0400 |
Organization: | Compilers Central |
References: | 04-09-038 |
Keywords: | C++, analysis |
Posted-Date: | 13 Sep 2004 12:31:29 EDT |
"Paul Sheer" <psheer@WITHOUTicon.co.za> wrote in message
> I need to automatically search and replace all fixed size
> buffer strcpy's with strncpy's (or better yet, strlcpy's)
> as a security and stability audit. The code base is large
> and it is not feasable to manually perform these changes.
Whether you make the change manually or automatically, you still have
to go through and TEST every change, and you still have to go through
and INSPECT every change to make certain that it was done correctly.
By the time you have done all that, the cost to make the changes
manually has vanished in the noise floor.
grep is your friend.
Return to the
comp.compilers page.
Search the
comp.compilers archives again.