We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
0.12.0-dev.289+b642bb92e
// overflow.c unsigned foo(unsigned a, unsigned b) { return a + b; } int main(void) {return 0;}
$ zig cc overflow.c -fsanitize=unsigned-integer-overflow
LLD Link... ld.lld: error: undefined symbol: __ubsan_handle_add_overflow >>> referenced by overflow.c:2 >>> /home/xzto/.cache/zig/o/f31c2c508be8c5b115df26da78214296/overflow.o:(foo)
It works if you replace zig cc with clang.
zig cc
clang
Successful compilation.
The text was updated successfully, but these errors were encountered:
I think the main tracking issue for UBSan is currently #5163 .
Sorry, something went wrong.
No branches or pull requests
Zig Version
0.12.0-dev.289+b642bb92e
Steps to Reproduce and Observed Behavior
$ zig cc overflow.c -fsanitize=unsigned-integer-overflow
It works if you replace
zig cc
withclang
.Expected Behavior
Successful compilation.
The text was updated successfully, but these errors were encountered: