Re:Format string vulnerability found in 'sudo'
by tlb on Monday January 30, 2012 @11:21PM
(#3531840)
Yes, client libraries for SQL databases should absolutely have an escaping function. The fact that some don't is responsible for a significant fraction of all security failures.
[ Parent
| on HN ]
Re:Format string vulnerability found in 'sudo'
by nyellin on Tuesday January 31, 2012 @02:59AM
(#3532314)
Your suggestion makes no sense.
If you don't want to use a format string, use a function that takes a regular string, like puts, instead of a vprintf variant. Why would anyone go to the trouble of escaping a format string so they can use it with a function whose sole purpose is to parse format strings? (Which you can already do, by the way, by using vprintf correctly.)