llvm-project
898eabc2 - [clang] Fix interaction of __ob_wrap with signed divide. (#194474)

Commit
13 days ago
[clang] Fix interaction of __ob_wrap with signed divide. (#194474) At first glance, signed divide overflow seems similar to other forms of signed overflow, but it's significantly different: it's the only form of signed overflow that is not affected by -fwrapv, it has undefined behavior at the LLVM IR level, and it can trigger trap on x86. Given that, make ubsan trigger on signed divide overflow even if a type is marked __ob_wrap.
Author
Parents
Loading