Return
Styles:
Pseud0ch
,
Terminal
,
Valhalla
,
NES
,
Geocities
,
Blue Moon
.
Entire thread
Simulating malloc failures
1
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.
7
Name:
Anonymous
2009-03-15 21:43
http://www.ibm.com/developerworks/linux/library/l-glibc.html
To call malloc from your wrapper you'll have to grab the original malloc function via dlopen/dlsym. Easy!
Newer Posts
Don't change these.
Name:
Email:
Entire Thread
Thread List