3 ms·
> 3. 99.9% of applications do not correctly handle malloc returning NULL in 100% of cases. 0% of applications correctly handle being unable to write to a page
by toast0 8y ago
> 3. 99.9% of applications do not correctly handle malloc returning NULL in 100% of cases.
0% of applications correctly handle being unable to write to a page they were given as writable. It's certainly true that few applications correctly handle a failed malloc, and in many cases there's not really a correct way to handle it, but at least it's available to handle.