[hwasan] Fix incorrect candidate matching for stack OOB.
authorFlorian Mayer <fmayer@google.com>
Wed, 30 Jun 2021 14:47:53 +0000 (15:47 +0100)
committerFlorian Mayer <fmayer@google.com>
Tue, 6 Jul 2021 11:24:07 +0000 (12:24 +0100)
commit745758acf3c295e3bf9f9dd283a3568c912a1827
tree968b41204027bb1bd0244536bbf2108588e4cb11
parent706bbfb35bd31051e46ac77aab3e9b2dbc3abe78
[hwasan] Fix incorrect candidate matching for stack OOB.

We would find an address with matching tag, only to discover in
ShowCandidate that it's very far away from [stack].

Reviewed By: eugenis

Differential Revision: https://reviews.llvm.org/D105197
compiler-rt/lib/hwasan/hwasan_report.cpp
compiler-rt/test/hwasan/TestCases/stack-oob.c