Skip to content

Commit b7cc401

Browse files
authored
[hwasan] Call user provided callback function for both fatal and non-… (#80429)
…fatal error report This makes the behavior of HWASan matching with ASan: always call user provided callback function for an error report, but only call `SetAbortMessage()` on Android when `flags()->halt_on_error` is true.
1 parent eb1b428 commit b7cc401

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler-rt/lib/hwasan/hwasan_report.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class ScopedReport {
4040
public:
4141
explicit ScopedReport(bool fatal) : fatal(fatal) {
4242
Lock lock(&error_message_lock_);
43-
error_message_ptr_ = fatal ? &error_message_ : nullptr;
43+
error_message_ptr_ = &error_message_;
4444
++hwasan_report_count;
4545
}
4646

0 commit comments

Comments
 (0)