]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/compiler-rt/lib/hwasan/hwasan_report.h
Merge llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp
[FreeBSD/FreeBSD.git] / contrib / compiler-rt / lib / hwasan / hwasan_report.h
1 //===-- hwasan_report.h -----------------------------------------*- C++ -*-===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 ///
10 /// \file
11 /// This file is a part of HWAddressSanitizer. HWASan-private header for error
12 /// reporting functions.
13 ///
14 //===----------------------------------------------------------------------===//
15
16 #ifndef HWASAN_REPORT_H
17 #define HWASAN_REPORT_H
18
19 #include "sanitizer_common/sanitizer_internal_defs.h"
20 #include "sanitizer_common/sanitizer_stacktrace.h"
21
22 namespace __hwasan {
23
24 void ReportStats();
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);
30
31 void ReportAtExitStatistics();
32
33
34 }  // namespace __hwasan
35
36 #endif  // HWASAN_REPORT_H