Hacker News new | ask | show | jobs
by tempodox 3558 days ago
> ...an error doesn't have the potential to hand you a segfault.

And that is a good thing why? So you don't realise there was an error and your app runs on in a corrupted state?

2 comments

For starters, a huge set of security vulnerabilities are not possible. Ex: buffer overflow, double free, reading uninitialized memory.
Precisely. Don't write Application code in a systems language.
If you segfault, that's not because your state is corrupt. Not usually, anyways. Typically, you'll segfault from a use-after-free error or similar.
How else would you define corrupted state than “losing track of the objects in your app”? Not crashing as a consequence hardly makes it better.