Path: blob/main/contrib/llvm-project/compiler-rt/lib/hwasan/hwasan_report.h
35236 views
//===-- hwasan_report.h -----------------------------------------*- C++ -*-===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//7///8/// \file9/// This file is a part of HWAddressSanitizer. HWASan-private header for error10/// reporting functions.11///12//===----------------------------------------------------------------------===//1314#ifndef HWASAN_REPORT_H15#define HWASAN_REPORT_H1617#include "sanitizer_common/sanitizer_internal_defs.h"18#include "sanitizer_common/sanitizer_stacktrace.h"1920namespace __hwasan {2122void ReportStats();23void ReportTagMismatch(StackTrace *stack, uptr addr, uptr access_size,24bool is_store, bool fatal, uptr *registers_frame);25void ReportInvalidFree(StackTrace *stack, uptr addr);26void ReportTailOverwritten(StackTrace *stack, uptr addr, uptr orig_size,27const u8 *expected);28void ReportRegisters(const uptr *registers_frame, uptr pc);29void ReportAtExitStatistics();303132} // namespace __hwasan3334#endif // HWASAN_REPORT_H353637