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

> but one should still write code defensively.

I'm not sure what this means. You should not write your code any differently regardless of whether you used a sanitizer to help gain confidence in your implementation.

You should not use sanitizers in production (at least not the current generation).

> Can you test Kernel code with a sanitizer

In fact you can! Both UBSan [1] and ASan [2] are in use to root out bugs in linux.

[1] https://www.kernel.org/doc/html/v4.14/dev-tools/ubsan.html

[2] https://www.kernel.org/doc/html/v4.14/dev-tools/kasan.html




Join us for AI Startup School this June 16-17 in San Francisco!

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

Search: