[all-commits] [llvm/llvm-project] 6dfd8d: [asan] Rewrite Windows/heaprealloc_alloc_zero chec...
Thurston Dang via All-commits
all-commits at lists.llvm.org
Sat Aug 30 15:44:14 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 6dfd8d0ab46e64d0c30d2b9c60f212b50171fc9d
https://github.com/llvm/llvm-project/commit/6dfd8d0ab46e64d0c30d2b9c60f212b50171fc9d
Author: Thurston Dang <thurston at google.com>
Date: 2025-08-30 (Sat, 30 Aug 2025)
Changed paths:
M compiler-rt/test/asan/TestCases/Windows/heaprealloc_alloc_zero.cpp
Log Message:
-----------
[asan] Rewrite Windows/heaprealloc_alloc_zero check to avoid dereference (#156211)
The test currently checks that 1-byte is allocated when malloc(0) is
called, by dereferencing the pointer.
https://github.com/llvm/llvm-project/pull/155943 changed ASan to
consider the dereference to be a heap buffer overflow. This patch
changes the test to check the allocated size is still 1-byte, but not
dereference the pointer.
This aims to fix the breakage reported in
https://github.com/llvm/llvm-project/pull/155943#issuecomment-3239543505
It also enables the test for 64-bit Windows.
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