Better HN
topnewbestaskshowjobs
Log inSign up

cyan_pencil

4 karma · joined Dec 15, 2018 (7y ago) · 1 submissions

Submissions

comment 7y ago · link · parent

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