http://code.google.com/p/address-sanitizer/wiki/AddressSanitizer It finds use-after-free and out-of-bounds errors with very little overhead. Could be useful.