3 ms·
In C, accessing an out of bounds array index does not necessarily cause a segmentation fault. It's called buffer overrun and regularly used in malicious exploit
by kabouseng 13y ago
In C, accessing an out of bounds array index does not necessarily cause a segmentation fault. It's called buffer overrun and regularly used in malicious exploits / attacks.
What does occur many times is you mess up your stack, or mess with other memory in your heap, causing segmentation faults for various other reasons.