llvm-project
ef84e19e - [compiler-rt][memprof] fix off-by-one in shadow access-count accumula… (#208376)

Commit
21 hours ago
[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.
Author
Parents
Loading