AddressSanitizer and Undo are two tools that can be used to find bugs in your code.