News for hackers. Stuff that matters.
Re:Don't run 'strings' on untrusted files by userbinator on Saturday October 25, 2014 @08:18PM (#8509867)
The problem is that "safer" languages just encourages programmers that don't really think carefully about what they're doing because of the "the language is safe, it'll protect me from everything" effect. "Simple" bugs get hidden, programmers are encouraged to create more complex systems as a result, and the bugs thus created become even more subtle and difficult to find.

Is it really so bloody hard to ensure that e.g. the fields of the executable header, if they're offsets, are actually valid values? I've written tools that work with PEs, many of them reading the entire file into a buffer first, and "make sure you're inside the file" was one of the points I always kept in mind.

I say we need to fix how programmers think, not the language, because the same mindset that leads to bugs like these in "unsafe" languages will also lead to (maybe less severe, maybe more severe but also more subtle) bugs in "safe" languages too.

Re:Don't run 'strings' on untrusted files by enneff on Saturday October 25, 2014 @09:31PM (#8510003)
> The problem is that "safer" languages just encourages programmers that don't really think carefully about what they're doing because of the "the language is safe, it'll protect me from everything" effect. "Simple" bugs get hidden, programmers are encouraged to create more complex systems as a result, and the bugs thus created become even more subtle and difficult to find.

Citation needed. The plethora of over overcomplicated C code is a strong argument against this claim.

Re:Don't run 'strings' on untrusted files by userbinator on Saturday October 25, 2014 @11:02PM (#8510135)
The plethora of over overcomplicated C code is a strong argument against this claim.

There certainly is plenty of overly complicated C code, but I doubt there is more of it than there is the amount of overly complicated code written in some of the other popular "safe" languages: Java and JavaScript.

Re:Don't run 'strings' on untrusted files by enneff on Monday October 27, 2014 @06:37AM (#8514725)
These unsubstantiated claims are pointless.
Re:Don't run 'strings' on untrusted files by krylon on Sunday October 26, 2014 @12:36PM (#8511475)
> I say we need to fix how programmers think, not the language

I agree, but unfortunately, changing the language or replacing it, is a lot easier than changing the way programmers think.

Re:Don't run 'strings' on untrusted files by cgag on Saturday October 25, 2014 @09:36PM (#8510011)
People create more complex systems because they no longer have to think about tedious bugs that will be caught by their compiler?