3 ms·
It's probably overly pedantic of me, but: > Segmentation faults happen in C when a program makes an invalid memory access. Segmentation faults CAN happen, but
by legulere 11y ago
It's probably overly pedantic of me, but:
> Segmentation faults happen in C when a program makes an invalid memory access.
Segmentation faults CAN happen, but don't need to. Just as likely some padding space (no effect at all), program data (some of your data will contain garbage) or code pointers (worst case! this means arbitrary code execution) can be overwritten.
- chris_wot 11y agoDunno why you are being downvoted, that sounds correct to me!
- davidvgalbraith 11y agoThanks! Updated the post with "Segmentation faults can happen in C..."