diff options
author | Thurston Dang <thurston@google.com> | 2025-08-30 22:43:51 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-08-30 15:43:51 -0700 |
commit | 6dfd8d0ab46e64d0c30d2b9c60f212b50171fc9d (patch) | |
tree | 1170bf057411510ae724cd3999cd5a52aa6a87a3 /llvm/lib/CodeGen/ReachingDefAnalysis.cpp | |
parent | 2824b3c00efe79873bc1cbe8181c8c65da134996 (diff) | |
download | llvm-6dfd8d0ab46e64d0c30d2b9c60f212b50171fc9d.zip llvm-6dfd8d0ab46e64d0c30d2b9c60f212b50171fc9d.tar.gz llvm-6dfd8d0ab46e64d0c30d2b9c60f212b50171fc9d.tar.bz2 |
[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.
Diffstat (limited to 'llvm/lib/CodeGen/ReachingDefAnalysis.cpp')
0 files changed, 0 insertions, 0 deletions