summaryrefslogtreecommitdiff
path: root/chromium/base/debug/invalid_access_win.h
blob: c458e3bb473673dfdcc63c0ec0725d5f4c7e2323 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef BASE_DEBUG_INVALID_ACCESS_WIN_H_
#define BASE_DEBUG_INVALID_ACCESS_WIN_H_

#include "base/base_export.h"

namespace base {
namespace debug {
namespace win {

// Creates a synthetic heap corruption that causes the current process to
// terminate immediately with a fast fail exception.
[[noreturn]] BASE_EXPORT void TerminateWithHeapCorruption();

// Creates a CFG violation.
[[noreturn]] BASE_EXPORT void TerminateWithControlFlowViolation();

}  // namespace win
}  // namespace debug
}  // namespace base

#endif  // BASE_DEBUG_INVALID_ACCESS_WIN_H_