1 //===-- hwasan_report.h -----------------------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
11 /// This file is a part of HWAddressSanitizer. HWASan-private header for error
12 /// reporting functions.
14 //===----------------------------------------------------------------------===//
16 #ifndef HWASAN_REPORT_H
17 #define HWASAN_REPORT_H
19 #include "sanitizer_common/sanitizer_internal_defs.h"
20 #include "sanitizer_common/sanitizer_stacktrace.h"
25 void ReportTagMismatch(StackTrace *stack, uptr addr, uptr access_size,
26 bool is_store, bool fatal);
27 void ReportInvalidFree(StackTrace *stack, uptr addr);
28 void ReportTailOverwritten(StackTrace *stack, uptr addr, uptr orig_size,
29 uptr tail_size, const u8 *expected);
31 void ReportAtExitStatistics();
34 } // namespace __hwasan
36 #endif // HWASAN_REPORT_H