https://bugs.llvm.org/show_bug.cgi?id=33133
Bug ID: 33133
Summary: UBSan misses check for "negative_value << 0"
Product: clang
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: libclang
Assignee: unassignedclangb...@nondot.org
Reporter: babo...@gmail.com
CC: kli...@google.com, llvm-bugs@lists.llvm.org
> cat f.cpp
int i = -1;
int z = 0;
int main() {
return (i << 0) + (i << z);
}
> clang++ -fsanitize=undefined f.cpp
> ./a.out
No error is issued.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs