brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.2 KiB · bb9492a Raw
36 lines · c
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-exception6//7//===----------------------------------------------------------------------===//8///9/// \file10/// This file is a part of HWAddressSanitizer. HWASan-private header for error11/// reporting functions.12///13//===----------------------------------------------------------------------===//14 15#ifndef HWASAN_REPORT_H16#define HWASAN_REPORT_H17 18#include "sanitizer_common/sanitizer_internal_defs.h"19#include "sanitizer_common/sanitizer_stacktrace.h"20 21namespace __hwasan {22 23void ReportStats();24void ReportTagMismatch(StackTrace *stack, uptr addr, uptr access_size,25                       bool is_store, bool fatal, uptr *registers_frame);26void ReportInvalidFree(StackTrace *stack, uptr addr);27void ReportTailOverwritten(StackTrace *stack, uptr addr, uptr orig_size,28                           const u8 *expected);29void ReportRegisters(const uptr *registers_frame, uptr pc);30void ReportAtExitStatistics();31 32 33}  // namespace __hwasan34 35#endif  // HWASAN_REPORT_H36