3 ms·
The C standard could easily make dereferencing a null pointer implementation-defined behavior. And even more critical: Signed integer overflow should be implem
by zosima 4y ago
The C standard could easily make dereferencing a null pointer implementation-defined behavior.
And even more critical: Signed integer overflow should be implementation defined, and each implementation do something sane (different from assuming it doesn't happen). This would have saved us many security vulnerabilities, and unnecessary program crashes.
- saagarjha 4y agoIf your program is crashing because of an overflow you’re lucky because it’s saving you from a security vulnerability.