Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Simulating malloc failures

Name: Anonymous 2009-03-15 16:50

Is there something like valgrind that can make certain calls to malloc (also system calls could be interesting) fail?  My poor error paths never get tested.

Name: Anonymous 2009-03-16 9:01

>>12
Except for the fact that most implementations of the standard rand use the same algorithm as they did decades ago for backward compatibility reasons, including glibc. There's a reason people tell you to use /dev/urandom instead.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List