|
|
|
|
|
by mike_hearn
3210 days 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. |
|