Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


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.)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: