3 ms·
There is ASAN, the address sanitizer. You can enable it by passing some flags to gcc. It will make your program crash as soon as there is an out of bounds read
by cyan_pencil 8y ago
There is ASAN, the address sanitizer.
You can enable it by passing some flags to gcc.
It will make your program crash as soon as there is an out of bounds read / undefined behaviour.
If debug symbols are enabled, it will also tell you which line of code was responsible.
It can save you countless hours of debugging