DragonFly kernel List (threaded) for 2003-12
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
RE: More thinking securely...
:
:> 'safe' situations where old functions are used (like
:> sprintf(buf, "%d", v)), simply because then the audited
:
:Safe?
:
: char buf[8];
: sprintf(buf, "%d", v);
:
:>
If 'v' is a short :-)
Most programmers don't make that mistake.. that is, it isn't a common
mistake. A more common mistake is to use strcpy() and strcat() without
checking for possible overflows.
-Matt
Matthew Dillon
<dillon@xxxxxxxxxxxxx>
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]