[all-commits] [llvm/llvm-project] b3452d: [asan] Detect dereferencing zero-alloc as heap buf...
Thurston Dang via All-commits
all-commits at lists.llvm.org
Fri Aug 29 10:20:08 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: b3452d90b043a398639e62b0ab01aa339cc649de
https://github.com/llvm/llvm-project/commit/b3452d90b043a398639e62b0ab01aa339cc649de
Author: Thurston Dang <thurston at google.com>
Date: 2025-08-29 (Fri, 29 Aug 2025)
Changed paths:
M compiler-rt/lib/asan/asan_allocator.cpp
M compiler-rt/test/asan/TestCases/zero_alloc.cpp
Log Message:
-----------
[asan] Detect dereferencing zero-alloc as heap buffer overflow (#155943)
When a zero-byte allocation is requested, ASan actually allocates 1-byte
for compatibility. This change poisons that byte, to detect
dereferences.
Also updates the test from #155933
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