Re:History's Worst Software Bugs (2005)
by Gibbon1 on Saturday August 01, 2015 @03:45PM
(#9988421)
But gets() isn't just one unsafe function all of the classic string functions are totally unsafe, and most of their safer replacements are similarly bad. They do things like take buffer size and then will truncate strings and leave off the terminating zero. So then the next string function will blow up.
I think really when people manipulate strings in c/c++ they use the safe functions that come with frameworks.
I think really when people manipulate strings in c/c++ they use the safe functions that come with frameworks.