strcpy -> strlcpy?

Ed df at bsd.it
Mon Jan 3 04:33:03 PST 2005


On Monday 03 January 2005 03:11, Anil Madhavapeddy wrote:
> If you're interested, we've got some simple modifications in the OpenBSD
> gcc (both 2.95 and 3.3) which checks for these kinds of errors.  It
> does need relevant functions like strlcpy(3) to be marked up with
> attributes to indicate which arguments are buffers and which are buffer
> sizes.


You could find some easy infos here:

http://www.onlamp.com/lpt/a/4676







More information about the Kernel mailing list