Re:Don't run 'strings' on untrusted files
by meowface on Saturday October 25, 2014 @04:06PM
(#8509239)
Multiple factors are to blame. I agree this is dumb behavior here by strings, but if the ELF parsing code were to be written in a language like Rust, it's far less likely it would have a bug of this nature.
[ Parent
| on HN ]
Re:Don't run 'strings' on untrusted files
by thirsteh on Saturday October 25, 2014 @04:12PM
(#8509252)
Rust... or pretty much any other language than C.
C is scary from a security perspective because it is both incredibly easy to write code that has subtle but very serious bugs leading to e.g. arbitrary code execution, and it is easy to exploit those vulnerabilities.
So what you're saying is that the bugs from a piece of software written 20 years ago (roughly) can be solved by writing the program in a language that hasn't had a stable release yet? Sure there are better alternatives now, but what widespread, well known, portable language was available in the mid 90's that this could have been written in?