[compiler-rt] [ASan] Fix overflow and last byte handling in __asan_region_is_poisoned (PR #183900)
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 17 15:02:25 PDT 2026
================
@@ -241,30 +241,37 @@ int __asan_address_is_poisoned(void const volatile *addr) {
uptr __asan_region_is_poisoned(uptr beg, uptr size) {
if (!size)
return 0;
- uptr end = beg + size;
+ uptr last = beg + size - 1;
----------------
vitalybuka wrote:
reverting aligned_e, shadow_end they are still exclusive, so old names are appropriate
https://github.com/llvm/llvm-project/pull/183900
More information about the llvm-commits
mailing list