Better HN
topnewbestaskshowjobs
Log inSign up

pblakeney

7 karma · joined Jun 28, 2013 (13y ago) · 1 submissions

Submissions

comment 12y ago · link · parent

My C is a little rusty, but it seems like this web server is definitely not safe. The very first function in the code has a local stack variable and uses sprintf() to fill it. That's almost a textbook example of a buffer overflow vulnerability, if I'm not mistaken. Even if they try and compensate for that by checking the data length before it's passed to that function, it's still scary to see someone using sprintf() instead of snprintf() these days. It's like walking a tightrope without a net.