Wasn’t the last OpenSSH vulnerability as a result of running code in an atexit h...
David Chisnall (*Now with 50% more sarcasm!*) @david_chisnall@infosec.exchange
Wasn’t the last OpenSSH vulnerability as a result of running code in an atexit handler, when the program was in an undefined state? And wasn’t this the motivation for C11 adding at_quick_exit?
And didn’t we all learn the lesson that, in a C codebase, the correct thing to do when you are in an undefined state, for example as a result of an allocation failing with no local error handling, to exit the process as quickly as possible and handle resilience at the orchestration layer?
Well, almost all of us, apparently.