blob: a7cd0c585345c687dad8393bc69b5565d8c77ddc [file] [log] [blame]
Avi Drissmane4622aa2022-09-08 20:36:061// Copyright 2018 The Chromium Authors
Will Harriseb4a6ff2018-07-25 18:36:522// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef BASE_DEBUG_INVALID_ACCESS_WIN_H_
6#define BASE_DEBUG_INVALID_ACCESS_WIN_H_
7
8#include "base/base_export.h"
9
10namespace base {
11namespace debug {
12namespace win {
13
14// Creates a synthetic heap corruption that causes the current process to
15// terminate immediately with a fast fail exception.
16[[noreturn]] BASE_EXPORT void TerminateWithHeapCorruption();
17
Will Harrisc218db232020-07-21 20:20:5718// Creates a CFG violation.
19[[noreturn]] BASE_EXPORT void TerminateWithControlFlowViolation();
20
Will Harriseb4a6ff2018-07-25 18:36:5221} // namespace win
22} // namespace debug
23} // namespace base
24
25#endif // BASE_DEBUG_INVALID_ACCESS_WIN_H_