3 ms·
Not all violations of memory safety result in immediate program termination. There's an intervening period of execution during which your program simply perform
by gue5t 10y ago
Not all violations of memory safety result in immediate program termination. There's an intervening period of execution during which your program simply performs unintended operations such as overwriting unrelated memory (which could be a memory-mapped file), terminating "correctly" (and performing whatever operations that entails) with corrupt state, and generally an unbounded set of other potential consequences. An immediate segfault is the absolute best hope for a program without memory safety, since you both see no unintended effects performed on the program's behalf and you learn that your program needs fixing.
- EugeneOZ 10y agoGot it, thank you.