2 ms·
Now I found my first program that actually tests it properly :) I knew you had to systematically drive the code through every OOM codepath to even have a shot
by mike_hearn 9y ago
Now I found my first program that actually tests it properly :)
I knew you had to systematically drive the code through every OOM codepath to even have a shot at doing that in an unmanaged language. Sadly a lot of C code is written by people who think:
if ((ptr = malloc(sizeof(struct foo))) == null)
return -1;
is the same thing as being OOM safe.