DEV Community

Discussion on: Writing safer C with Clang address sanitizer

Collapse
 
loderunner profile image
Charles Francoise

I like that idea of running all tests with Asan. It's pretty radical, but it would definitely be a strong enforcement of code quality standards.

Collapse
 
berkus profile image
Berkus Decker

I've been doing this for a while in my networking code, all tests are built and run with asan active always.

The overhead is quite negligible even if I do audio I/O.

Thread Thread
 
loderunner profile image
Charles Francoise

Agreed. I had actually forgotten to disable the address sanitizer yesterday while debugging something else, and I didn't even notice the slow-down.