Bad function hunt
Andre Nathan
andre at digirati.com.br
Sat Aug 28 17:05:50 PDT 2004
Hello
The patches at [1] substitute a number of dangerous string functions
(strcpy, strcat, sprintf) for their safer alternatives, strlcpy, strlcat
and snprintf, for the following programs at src/sbin: atacontrol, atm,
badsect, camcontrol, ccdconfig, clri, comcontrol.
I have also substituted strncpy and strncat, since they are slow, often
used incorrectly and changing them keeps the code more uniform.
The string-to-number conversion functions (strtol, atoi and similars) have
been substituted by strtonum.
Best regards,
Andre
[1]http://andre.people.digirati.com.br/dragonfly/patches/hunt/
More information about the Submit
mailing list