summaryrefslogtreecommitdiff
path: root/lib/asan/asan_report.cc
diff options
context:
space:
mode:
authorKostya Serebryany <kcc@google.com>2013-09-03 09:44:56 +0000
committerKostya Serebryany <kcc@google.com>2013-09-03 09:44:56 +0000
commit696902ad6f427ce37b5f64a84a9cd53162f09abf (patch)
tree3e603cd07fab254d1c7791dce7e23c0dc6735bba /lib/asan/asan_report.cc
parent2f913eef5770968386515855529e9b6244df1247 (diff)
downloadcompiler-rt-696902ad6f427ce37b5f64a84a9cd53162f09abf.tar.gz
compiler-rt-696902ad6f427ce37b5f64a84a9cd53162f09abf.tar.bz2
compiler-rt-696902ad6f427ce37b5f64a84a9cd53162f09abf.tar.xz
fix PR17061 (and pleeease, don't ask me for a test, this is just a minor output formatting issue :)
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189783 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/asan/asan_report.cc')
-rw-r--r--lib/asan/asan_report.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/asan/asan_report.cc b/lib/asan/asan_report.cc
index d6d7d9c5..a80efffc 100644
--- a/lib/asan/asan_report.cc
+++ b/lib/asan/asan_report.cc
@@ -118,7 +118,7 @@ static void PrintShadowBytes(const char *before, u8 *bytes,
for (uptr i = 0; i < n; i++) {
u8 *p = bytes + i;
const char *before = p == guilty ? "[" :
- p - 1 == guilty ? "" : " ";
+ (p - 1 == guilty && i != 0) ? "" : " ";
const char *after = p == guilty ? "]" : "";
PrintShadowByte(before, *p, after);
}