News for hackers. Stuff that matters.
Re:Deconstructing "K&R C" by squiggly101 on Tuesday January 10, 2012 @09:49PM (#3450249)
Kind-of a long-winded way to point out the (very well known) fact that passing non-terminated strings to functions that expect terminated strings is fraught with danger, isn't it?
Re:Deconstructing "K&R C" by zedshaw on Wednesday January 11, 2012 @12:13AM (#3450544)
Nope, and what I'm actually doing is fuzzing the input to this function, which is a common breaking technique.

You see, programmers tend to go around only using functions exactly as they were intended. Hackers come along and then use them in unintended ways, which causes bugs. The way to prevent this is to think like a hacker and try to use your code in unintended ways and then try to prevent them.

Re:Deconstructing "K&R C" by gonzo on Wednesday January 11, 2012 @10:35AM (#3452154)
You say 'hackers' like it's a bad thing. As a reminder, this is "Hacker News".