News for hackers. Stuff that matters.
Re:Getting Past C by EugeneOZ on Tuesday January 03, 2017 @07:29PM (#13314617)
Besides of memory safety, what is different in panicking? I'm not trying to argue - I don't know it. For me result is the same - process failed. What is difference in consequences for memory?
Re:Getting Past C by gue5t on Tuesday January 03, 2017 @07:59PM (#13314794)
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.
Re:Getting Past C by EugeneOZ on Tuesday January 03, 2017 @08:11PM (#13314858)
Got it, thank you.
Re:Getting Past C by gpderetta on Tuesday January 03, 2017 @08:25PM (#13314918)
Panic behaviour is well defined. Segfaults are non-reliable (i.e. it might or might not crash) and often exploitable.