Hacker News new | past | comments | ask | show | jobs | submit login

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



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: