From 4f5147a7cff5fbb0191342ad224630de0872f180 Mon Sep 17 00:00:00 2001 From: Florian Mayer Date: Tue, 6 Sep 2022 15:18:28 -0700 Subject: [PATCH] [HWASan] Show memory rather than tag addresses in tag dump Reviewed By: eugenis Differential Revision: https://reviews.llvm.org/D133380 --- compiler-rt/lib/hwasan/hwasan_report.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler-rt/lib/hwasan/hwasan_report.cpp b/compiler-rt/lib/hwasan/hwasan_report.cpp index 07f672bd050c..de082150b705 100644 --- a/compiler-rt/lib/hwasan/hwasan_report.cpp +++ b/compiler-rt/lib/hwasan/hwasan_report.cpp @@ -518,7 +518,7 @@ static void PrintTagInfoAroundAddr(tag_t *tag_ptr, uptr num_rows, InternalScopedString s; for (tag_t *row = beg_row; row < end_row; row += row_len) { s.append("%s", row == center_row_beg ? "=>" : " "); - s.append("%p:", (void *)row); + s.append("%p:", (void *)ShadowToMem(reinterpret_cast(row))); for (uptr i = 0; i < row_len; i++) { s.append("%s", row + i == tag_ptr ? "[" : " "); print_tag(s, &row[i]);