If the fault address is at the boundary of memory regions, this could
cause us to segfault otherwise.
Ran test with old compiler_rt to make sure it fails.
Paths
| Differential D105032
[hwasan] Check for overflow when searching candidates. ClosedPublic Authored by fmayer on Jun 28 2021, 7:35 AM.
Details Summary If the fault address is at the boundary of memory regions, this could Ran test with old compiler_rt to make sure it fails.
Diff Detail
Event Timeline
This revision is now accepted and ready to land.Jun 30 2021, 1:16 PM Closed by commit rGa0b1f3aac57a: [hwasan] Check for overflow when searching candidates. (authored by fmayer). · Explain WhyJul 6 2021, 3:22 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 355498 compiler-rt/lib/hwasan/hwasan_mapping.h
compiler-rt/lib/hwasan/hwasan_report.cpp
compiler-rt/test/hwasan/TestCases/tag-mismatch-border-address.c
|
There is MemIsApp in hwasan_linux.cpp. Rename this one to MemIsShadow, and maybe move both definitions to hwasan_mapping.h.