4 ms·
All array indexing is bounds checked, so those kind of errors are prevented. We're still working on the story around overflow checking
by nrc 12y ago
All array indexing is bounds checked, so those kind of errors are prevented. We're still working on the story around overflow checking
- sisalcat 12y agoThis prevents buffer overflow errors, but not crashes.
- dbaupp 12y agoIt prevents the OS killing a misbehaving application (which is what is meant by "crash" in that context). This allows, for example, a multithreaded server application to continue even if one worker task indexes an array incorrectly.
- kzrdude 12y agoIt also prevents an equally important problem: silent passing of errors. It's common for out of bounds accesses or stores in C or C++ to just pass silently, potentially corrupting data.