[all-commits] [llvm/llvm-project] 8784dc: [msan] Detect dereferencing zero-alloc as use-of-u...
Thurston Dang via All-commits
all-commits at lists.llvm.org
Fri Aug 29 10:19:59 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 8784dcef3485a3862e5cacc9e18c646d0225483b
https://github.com/llvm/llvm-project/commit/8784dcef3485a3862e5cacc9e18c646d0225483b
Author: Thurston Dang <thurston at google.com>
Date: 2025-08-29 (Fri, 29 Aug 2025)
Changed paths:
M compiler-rt/lib/msan/msan_allocator.cpp
M compiler-rt/test/msan/zero_alloc.cpp
Log Message:
-----------
[msan] Detect dereferencing zero-alloc as use-of-uninitialized-value (#155944)
When a zero-byte allocation is requested, MSan actually allocates 1-byte
for compatibility. This change poisons that byte, to detect
dereferences.
Also updates the test from #155934
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