llvm
670de1f5 - [compiler-rt][msan] Fix 32-bit overflow in CheckMemoryLayoutSanity (#189199)

Commit
14 days ago
[compiler-rt][msan] Fix 32-bit overflow in CheckMemoryLayoutSanity (#189199) Use start + (end - start) / 2 instead of (start + end) / 2 to compute the midpoint address. The original expression overflows when start + end exceeds UPTR_MAX, which happens on 32-bit targets whose memory layout includes regions above 0x80000000.
Author
Parents
Loading