2 ms·
> The safest approach is just to configure malloc to abort This seems like a good approach. Could you offer more details? I can do it with the MALLOC_CHECK_
by nkurz 17y ago
> The safest approach is just to configure malloc to abort
This seems like a good approach. Could you offer more details? I can do it with the MALLOC_CHECK_ environment variable in glibc, but is there some better way to do it at link time? In compiling my own code I can use a wrapper, but I'm not sure how to ensure that strdup aborts.