[compiler-rt] 2045d2c - Make memory dump same as the one in asan.
Martin Liska via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 27 09:46:59 PST 2019
Author: Martin Liska
Date: 2019-11-27T18:46:38+01:00
New Revision: 2045d2c90e240bf618d4e10f78f38dedc6db9357
URL: https://github.com/llvm/llvm-project/commit/2045d2c90e240bf618d4e10f78f38dedc6db9357
DIFF: https://github.com/llvm/llvm-project/commit/2045d2c90e240bf618d4e10f78f38dedc6db9357.diff
LOG: Make memory dump same as the one in asan.
Shadow memory (and short granules) are not prepended with memory
address and arrow at the end of line is removed.
Differential Revision: https://reviews.llvm.org/D70707
Added:
Modified:
compiler-rt/lib/hwasan/hwasan_report.cpp
Removed:
################################################################################
diff --git a/compiler-rt/lib/hwasan/hwasan_report.cpp b/compiler-rt/lib/hwasan/hwasan_report.cpp
index 606139f2e178..5df8c0ac9106 100644
--- a/compiler-rt/lib/hwasan/hwasan_report.cpp
+++ b/compiler-rt/lib/hwasan/hwasan_report.cpp
@@ -371,12 +371,13 @@ static void PrintTagInfoAroundAddr(tag_t *tag_ptr, uptr num_rows,
InternalScopedString s(GetPageSizeCached() * 8);
for (tag_t *row = beg_row; row < end_row; row += row_len) {
s.append("%s", row == center_row_beg ? "=>" : " ");
+ s.append("%p:", row);
for (uptr i = 0; i < row_len; i++) {
s.append("%s", row + i == tag_ptr ? "[" : " ");
print_tag(s, &row[i]);
s.append("%s", row + i == tag_ptr ? "]" : " ");
}
- s.append("%s\n", row == center_row_beg ? "<=" : " ");
+ s.append("\n");
}
Printf("%s", s.data());
}
More information about the llvm-commits
mailing list