Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
tlb
on Jan 21, 2022
|
parent
|
context
|
favorite
| on:
ISO C became unusable for operating systems develo...
You can't detect most UB at compile time. LLVM has a system to detect it a runtime. There is a significant performance penalty, but it can be useful during testing.
See
https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html
astrange
on Jan 22, 2022
[–]
It’s not actually that significant compared to something like asan. You can ship software with ubsan enabled if you want to.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
See https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html