scudo_errors.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  1. //===-- scudo_errors.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. /// Header for scudo_errors.cpp.
  10. ///
  11. //===----------------------------------------------------------------------===//
  12. #ifndef SCUDO_ERRORS_H_
  13. #define SCUDO_ERRORS_H_
  14. #include "sanitizer_common/sanitizer_internal_defs.h"
  15. namespace __scudo {
  16. void NORETURN reportCallocOverflow(uptr Count, uptr Size);
  17. void NORETURN reportPvallocOverflow(uptr Size);
  18. void NORETURN reportAllocationAlignmentTooBig(uptr Alignment,
  19. uptr MaxAlignment);
  20. void NORETURN reportAllocationAlignmentNotPowerOfTwo(uptr Alignment);
  21. void NORETURN reportInvalidPosixMemalignAlignment(uptr Alignment);
  22. void NORETURN reportInvalidAlignedAllocAlignment(uptr Size, uptr Alignment);
  23. void NORETURN reportAllocationSizeTooBig(uptr UserSize, uptr TotalSize,
  24. uptr MaxSize);
  25. void NORETURN reportRssLimitExceeded();
  26. void NORETURN reportOutOfMemory(uptr RequestedSize);
  27. } // namespace __scudo
  28. #endif // SCUDO_ERRORS_H_