2 ms·
> clang and gcc will both tell you at runtime if you go out of bounds [...] You can't have them all on at the same time because code will be unnecessarily slow
by masklinn 4y ago
> clang and gcc will both tell you at runtime if you go out of bounds [...] You can't have them all on at the same time because code will be unnecessarily slow
Yeah, so clang and gcc don't actually tell you at runtime if you go out of bounds. How many program ship production binaries with asan or ubsan enabled, to say nothing of msan or tsan?
Also you can't have them all on at the same time because they're not necessarily compatible with one another[0], you literally can't run with both asan and msan, or asan and tsan.
[0] https://github.com/google/sanitizers/issues/1039 https://github.com/google/sanitizers/issues/1039
- pjmlp 4y agoQuite a few subsystems on Android, but that is about it. https://source.android.com/devices/tech/debug/hwasan https://source.android.com/devices/tech/debug/hwasan