[all-commits] [llvm/llvm-project] ef84e1: [compiler-rt][memprof] fix off-by-one in shadow ac...
David CARLIER via All-commits
all-commits at lists.llvm.org
Thu Jul 9 09:20:17 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: ef84e19e3fd3f13ffbc87544054e6605226dfc79
https://github.com/llvm/llvm-project/commit/ef84e19e3fd3f13ffbc87544054e6605226dfc79
Author: David CARLIER <devnexen at gmail.com>
Date: 2026-07-09 (Thu, 09 Jul 2026)
Changed paths:
M compiler-rt/lib/memprof/memprof_allocator.cpp
M compiler-rt/lib/memprof/memprof_mapping.h
M compiler-rt/lib/memprof/tests/CMakeLists.txt
A compiler-rt/lib/memprof/tests/shadow.cpp
Log Message:
-----------
[compiler-rt][memprof] fix off-by-one in shadow access-count accumula… (#208376)
…tion.
GetShadowCount and GetShadowCountHistogram used an inclusive loop up to
MEM_TO_SHADOW(p + size), summing an extra adjacent cell when p + size is
granule-aligned. Use p + size - 1 to stay within the allocation.
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