[compiler-rt] [asan] Fix `unknown-crash` being reported for multi-byte errors, and incorrect memory access addresses being reported (PR #144480)
Florian Mayer via llvm-commits
llvm-commits at lists.llvm.org
Sat Jul 26 10:36:19 PDT 2025
================
@@ -437,8 +437,16 @@ ErrorGeneric::ErrorGeneric(u32 tid, uptr pc_, uptr bp_, uptr sp_, uptr addr,
bug_descr = "unknown-crash";
if (AddrIsInMem(addr)) {
u8 *shadow_addr = (u8 *)MemToShadow(addr);
- // If we are accessing 16 bytes, look at the second shadow byte.
- if (*shadow_addr == 0 && access_size > ASAN_SHADOW_GRANULARITY)
+ u8 *shadow_addr_upper_bound = (u8 *)MEM_TO_SHADOW(addr + access_size);
----------------
fmayer wrote:
nevermind then, sorry. just leave as is
https://github.com/llvm/llvm-project/pull/144480
More information about the llvm-commits
mailing list