100 ms·
As C language teacher assistants in Uni, we used LD_PRELOAD during project defences to replace the lib standard malloc by one of our own in order to be sure tha
by timtosi 9y ago
As C language teacher assistants in Uni, we used LD_PRELOAD during project defences to replace the lib standard malloc by one of our own in order to be sure that students allocated & freed memory correclty. Never saw so much Segmentation faults in such a short time window.
- wyldfire 9y agoElectric Fence is one such library. [1] [1] https://elinux.org/Electric_Fence https://elinux.org/Electric_Fence
- d33 9y agoHow about libdislocator? https://github.com/mirrorer/afl/tree/master/libdislocator https://github.com/mirrorer/afl/tree/master/libdislocator
- jwilk 9y agoIf you can afford rebuilding from source, using AddressSanitizer (perhaps also UndefinedBehaviorSanitizer) should be better at uncovering memory safety bugs than any LD_PRELOAD trick.