invalid_access_win.h 725 B

12345678910111213141516171819202122232425
  1. // Copyright 2018 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef BASE_DEBUG_INVALID_ACCESS_WIN_H_
  5. #define BASE_DEBUG_INVALID_ACCESS_WIN_H_
  6. #include "base/base_export.h"
  7. namespace base {
  8. namespace debug {
  9. namespace win {
  10. // Creates a synthetic heap corruption that causes the current process to
  11. // terminate immediately with a fast fail exception.
  12. [[noreturn]] BASE_EXPORT void TerminateWithHeapCorruption();
  13. // Creates a CFG violation.
  14. [[noreturn]] BASE_EXPORT void TerminateWithControlFlowViolation();
  15. } // namespace win
  16. } // namespace debug
  17. } // namespace base
  18. #endif // BASE_DEBUG_INVALID_ACCESS_WIN_H_