Insecurity Blues: Jeremy Allison reflects on Samba security flaws
Posted Nov 27, 2007 14:42 UTC (Tue) by
bfields (subscriber, #19510)
In reply to:
Insecurity Blues: Jeremy Allison reflects on Samba security flaws by nix
Parent article:
Insecurity Blues: Jeremy Allison reflects on Samba security flaws
sprintf() is sufficiently hard to use safely for nontrivial format strings that you might as well ban it, too.
Well, there are still plenty of trivial uses of sprintf(); in many cases there's an obvious upper bound on the length of the output.
Grepping through the source for sprintf() and looking for problems certainly makes sense, but if you ban it outright then the worry is that some coders will find some mechanical workaround for the ban that just replaces an obvious bug by one that's harder to see.
(
Log in to post comments)