[HWASAN] Improve tag mismatch diagnostics
authorEugene Leviant <eleviant@accesssoftek.com>
Mon, 21 Jan 2019 09:51:10 +0000 (09:51 +0000)
committerEugene Leviant <eleviant@accesssoftek.com>
Mon, 21 Jan 2019 09:51:10 +0000 (09:51 +0000)
commit0d7952ce78f0e45767a822161289c5d3a94d9f10
treea3c504e48173e38387aa16612d41b40bbf389fed
parentf608dc1f5775ee880e8ea30e2d06ab5a4a935c22
[HWASAN] Improve tag mismatch diagnostics

Reports correct size and tags when either size is not power of two
or offset to bad granule is not zero.

Differential revision: https://reviews.llvm.org/D56603

llvm-svn: 351730
compiler-rt/lib/hwasan/hwasan.cc
compiler-rt/lib/hwasan/hwasan_checks.h
compiler-rt/lib/hwasan/hwasan_report.cc
compiler-rt/test/hwasan/TestCases/mem-intrinsics.c