News for hackers. Stuff that matters.
Re:Is RAM wiped before use in another LXC container? by Arnavion on Wednesday April 05, 2023 @10:58AM (#35455335)
No code is written to handle allocation failure because it knows that it's running on an OS with overcommit where handling allocation failure is impossible. Overcommit means that you encounter the problem not when you call `malloc()` but when you do `*pointer = value;`, which is impossible to handle.
Re:Is RAM wiped before use in another LXC container? by kevin_thibedeau on Wednesday April 05, 2023 @04:04PM (#35459694)
Plenty of code runs on systems without that behavior. Graceful handling of malloc failure is still useful.
Re:Is RAM wiped before use in another LXC container? by Arnavion on Wednesday April 05, 2023 @05:08PM (#35460406)
I know. I myself write code that checks the result of malloc. I was responding with josefx's words.