[hwasan] Implement error report callback.
authorEvgenii Stepanov <eugenis@google.com>
Thu, 19 Nov 2020 22:34:56 +0000 (14:34 -0800)
committerEvgenii Stepanov <eugenis@google.com>
Sat, 21 Nov 2020 00:48:19 +0000 (16:48 -0800)
commit08d90f72cebd72dd0a972565ffcc445e57f50d8a
tree1dc6cd245bc5052e419bb27e9d50ff2ddd82aec4
parent21c91454a81ed9434642605663306685dc546fde
[hwasan] Implement error report callback.

Similar to __asan_set_error_report_callback, pass the entire report to a
user provided callback function.

Differential Revision: https://reviews.llvm.org/D91825
compiler-rt/include/sanitizer/hwasan_interface.h
compiler-rt/lib/hwasan/hwasan_interface_internal.h
compiler-rt/lib/hwasan/hwasan_report.cpp
compiler-rt/test/hwasan/TestCases/set-error-report-callback.cpp [new file with mode: 0644]