[all-commits] [llvm/llvm-project] 20edc8: [compiler-rt][TySan] Use pointer-width types for s...
Brian Cain via All-commits
all-commits at lists.llvm.org
Tue Apr 14 07:12:10 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 20edc8496df3b2e5fc08df89c6ca7b77f5e2aaf8
https://github.com/llvm/llvm-project/commit/20edc8496df3b2e5fc08df89c6ca7b77f5e2aaf8
Author: Brian Cain <brian.cain at oss.qualcomm.com>
Date: 2026-04-14 (Tue, 14 Apr 2026)
Changed paths:
M compiler-rt/lib/tysan/tysan.cpp
Log Message:
-----------
[compiler-rt][TySan] Use pointer-width types for shadow memory ops (#191602)
The TySan runtime used uint64_t/int64_t casts for shadow memory pointer
arithmetic and interior-byte marker values. These are incorrect on
32-bit targets where pointers are 4 bytes: the shadow entries are
pointer-sized, so the offsets and marker values must also be
pointer-sized.
Replace uint64_t/int64_t with uptr/sptr (sanitizer_common's
pointer-width typedefs) throughout SetShadowType, GetNotAllBadTD,
GetNotAllUnkTD, and __tysan_instrument_mem_inst. This is a no-op on
64-bit targets (where uptr == uint64_t) and fixes shadow corruption on
32-bit targets.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list