HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by pjmlp | Hacker News Reader
Parent
Full thread
pjmlp
·
It can, but in practice no one does it.
View on HN
majoe
·
When you think about it, that's what -fsanitize=undefined is doing. It detects undefined behaviour at runtime and aborts the program.
leni536
·
It detects some, but not all UBs. AFAIK it can't detect UB due to hnsequenced access to the same variable.
mgaunard
·
There are different sanitizers that detect different types of UB.
Asan, Msan, Tsan and UBSan all detects different ones.
Reply on news.ycombinator.com