4 ms·
Hardly anybody directly programs their web aware stuff in C. I do. :-) Even seasoned and careful programmers mess up though, witness the endless stream of buf
by cperciva 17y ago
Hardly anybody directly programs their web aware stuff in C.
I do. :-)
Even seasoned and careful programmers mess up though, witness the endless stream of buffer overflow exploits.
I'd dispute that. There were lots of buffer overflow vulnerabilities five years ago; but I can't remember seeing any buffer overflows in the past few years which weren't either (a) written by novices, or (b) in code which was written 5+ years ago but sufficiently obscure that nobody looked at it until recently.
I'd say that, especially given the proliferation of automated analysis tools, buffer overflows are pretty much a solved problem where seasoned and careful programmers are concerned.
- jacquesm 17y agoInteresting! What is it that you do in C that talks to the web ? I'm serving up a very large amount of jpegs as image streams to a piece of javascript and found that the only way to get enough performance was to code a multi-threaded special purpose webserver (I call it yawwws, yet another www server) in C. That's been going for a decade or so now, possibly if I had to do it today I'd use some other technology.
- cperciva 17y agoWhat is it that you do in C that talks to the web ? I've written lots of client side code (a command-line pipelined HTTP client; library code for callback-driven HTTP for the benefit of web services). On the server side, the tarsnap website is a combination of static HTML and CGI programs written in C.
- yread 17y agoI can't remember seeing any buffer overflows in the past few years which weren't either (a) written by novices, or (b) in code which was written 5+ years ago but sufficiently obscure that nobody looked at it until recently. Which category is the iPhone SMS vulnerability?
- cperciva 17y agoWhich category is the iPhone SMS vulnerability? I don't know -- I haven't seen any concrete details about what the bug was.
- yread 17y agosorry maybe youre right. I was not able to confirm that from a source i would trust
- jacquesm 17y agohttp://news.cnet.com/8301-27080_3-10299378-245.html http://news.cnet.com/8301-27080_3-10299378-245.html http://tech.yahoo.com/news/nf/20090801/tc_nf/68153 http://tech.yahoo.com/news/nf/20090801/tc_nf/68153
- yread 17y agoYeah I found those... yahoo and cnet is nice but not really specialized on security. And absence of such sites in the google results made me suspicious
- jacquesm 17y agoWell, it seems that apple provided a patch for it so I'm guessing it's real. Also everywhere there was talk about the details of the bug it was cited as buffer overflow. That said, this is only one example, I'm personally aware of 10's of examples ranging from character sets to configuration files and protocol buffers so one more or less isn't going to make much difference. For instance, and this is just one of many, mod_rewrite for apache had a buffer overflow issue in 2006.