Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

GCC and Clang support asan/ubsan, which lets you trade performance for nicer behavior related to memory access and undefined behavior. Whenever I do C development for a platform that supports asan/ubsan, I always develop and test with them enabled just because of how much debugging time they save.


Yes. Ubsan you should probably also turn on in production.




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

Search: