[all-commits] [llvm/llvm-project] 498977: asan: fix crash on odd stack size
Dmitry Vyukov via All-commits
all-commits at lists.llvm.org
Sun Mar 12 03:21:58 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 4989779d7a412a19bab168a1281f6f33edc40870
https://github.com/llvm/llvm-project/commit/4989779d7a412a19bab168a1281f6f33edc40870
Author: Dmitry Vyukov <dvyukov at google.com>
Date: 2023-03-12 (Sun, 12 Mar 2023)
Changed paths:
M compiler-rt/lib/asan/asan_thread.cpp
A compiler-rt/test/sanitizer_common/TestCases/Linux/odd_stack_size.cpp
Log Message:
-----------
asan: fix crash on odd stack size
The test currently crashes as:
AddressSanitizer: CHECK failed: asan_poisoning.cpp:38 "((AddrIsAlignedByGranularity(addr))) != (0)"
Main stack address/size don't have to be aligned on asan shadow granularity.
Align stack bottom.
Reviewed By: melver, vitalybuka
Differential Revision: https://reviews.llvm.org/D145799
More information about the All-commits
mailing list