[all-commits] [llvm/llvm-project] 63d350: [compiler-rt][hwasan] Fix decorate-proc-maps.c tes...
Vitaly Buka via All-commits
all-commits at lists.llvm.org
Tue Sep 22 13:03:34 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 63d3506589cd70d9dd0aba66dacbab00b9cbb802
https://github.com/llvm/llvm-project/commit/63d3506589cd70d9dd0aba66dacbab00b9cbb802
Author: Vitaly Buka <vitalybuka at google.com>
Date: 2026-09-22 (Tue, 22 Sep 2026)
Changed paths:
M compiler-rt/test/hwasan/TestCases/Linux/decorate-proc-maps.c
Log Message:
-----------
[compiler-rt][hwasan] Fix decorate-proc-maps.c test (#225496)
Avoid returning the heap pointer address from main, which causes the
process to exit with a non-zero exit status whenever the lowest byte of
the allocated address is non-zero.
Previously, `malloc(100)` (size class 112) was the first allocation in
its size class, returning page-aligned chunk 0 (`offset 0x00`, exit
code 0). Commit 5a50c15fa686 (#224953) removed `SinkOpts` (48 bytes)
from `llvm::cl::SubCommand`, shrinking `sizeof(SubCommand)` from 160 to
112 bytes. With the internal symbolizer enabled, two pre-main
`ManagedStatic<SubCommand>` allocations now take chunks 0 and 1 in the
112-byte size class, pushing `malloc(100)` to chunk 2 (`offset 0xe0`,
exit code 224).
Assisted-by: Gemini
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