1 //===-- scudo_errors.h ------------------------------------------*- C++ -*-===//
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
7 //===----------------------------------------------------------------------===//
9 /// Header for scudo_errors.cpp.
11 //===----------------------------------------------------------------------===//
13 #ifndef SCUDO_ERRORS_H_
14 #define SCUDO_ERRORS_H_
16 #include "sanitizer_common/sanitizer_internal_defs.h"
20 void NORETURN reportCallocOverflow(uptr Count, uptr Size);
21 void NORETURN reportPvallocOverflow(uptr Size);
22 void NORETURN reportAllocationAlignmentTooBig(uptr Alignment,
24 void NORETURN reportAllocationAlignmentNotPowerOfTwo(uptr Alignment);
25 void NORETURN reportInvalidPosixMemalignAlignment(uptr Alignment);
26 void NORETURN reportInvalidAlignedAllocAlignment(uptr Size, uptr Alignment);
27 void NORETURN reportAllocationSizeTooBig(uptr UserSize, uptr TotalSize,
29 void NORETURN reportRssLimitExceeded();
30 void NORETURN reportOutOfMemory(uptr RequestedSize);
32 } // namespace __scudo
34 #endif // SCUDO_ERRORS_H_