hwasan_report.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. //===-- hwasan_report.h -----------------------------------------*- C++ -*-===//
  2. //
  3. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
  4. // See https://llvm.org/LICENSE.txt for license information.
  5. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  6. //
  7. //===----------------------------------------------------------------------===//
  8. ///
  9. /// \file
  10. /// This file is a part of HWAddressSanitizer. HWASan-private header for error
  11. /// reporting functions.
  12. ///
  13. //===----------------------------------------------------------------------===//
  14. #ifndef HWASAN_REPORT_H
  15. #define HWASAN_REPORT_H
  16. #include "sanitizer_common/sanitizer_internal_defs.h"
  17. #include "sanitizer_common/sanitizer_stacktrace.h"
  18. namespace __hwasan {
  19. void ReportStats();
  20. void ReportTagMismatch(StackTrace *stack, uptr addr, uptr access_size,
  21. bool is_store, bool fatal, uptr *registers_frame);
  22. void ReportInvalidFree(StackTrace *stack, uptr addr);
  23. void ReportTailOverwritten(StackTrace *stack, uptr addr, uptr orig_size,
  24. const u8 *expected);
  25. void ReportRegisters(uptr *registers_frame, uptr pc);
  26. void ReportAtExitStatistics();
  27. } // namespace __hwasan
  28. #endif // HWASAN_REPORT_H