[hwasan] Improve report for addresses within regions.
authorFlorian Mayer <fmayer@google.com>
Wed, 16 Jun 2021 18:38:37 +0000 (19:38 +0100)
committerFlorian Mayer <fmayer@google.com>
Thu, 17 Jun 2021 11:01:30 +0000 (12:01 +0100)
commitccc0f777f6967c557ba066070f40e5fac9e0127d
tree82686a0bb925d767ba6478f2fbcce3883a1700f3
parent18070723ef5cfd7d58bc296fedb67b5e3a88908f
[hwasan] Improve report for addresses within regions.

Before: ADDR is located -320 bytes to the right of 1072-byte region
After: ADDR is located 752 bytes inside 1072-byte region

Reviewed By: eugenis, walli99

Differential Revision: https://reviews.llvm.org/D104412
compiler-rt/lib/hwasan/hwasan_report.cpp
compiler-rt/test/hwasan/TestCases/heap-buffer-overflow-into.c [new file with mode: 0644]