OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #if defined(OS_WIN) | |
6 #include <windows.h> | |
7 #endif | |
8 | |
9 #include "base/debug/alias.h" | 5 #include "base/debug/alias.h" |
10 #include "base/debug/asan_invalid_access.h" | 6 #include "base/debug/asan_invalid_access.h" |
11 #include "base/logging.h" | 7 #include "base/logging.h" |
12 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
13 | 9 |
14 namespace base { | 10 namespace base { |
15 namespace debug { | 11 namespace debug { |
16 | 12 |
17 namespace { | 13 namespace { |
18 | 14 |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 CorruptMemoryBlock(false); | 92 CorruptMemoryBlock(false); |
97 } | 93 } |
98 | 94 |
99 void AsanCorruptHeap() { | 95 void AsanCorruptHeap() { |
100 CorruptMemoryBlock(true); | 96 CorruptMemoryBlock(true); |
101 } | 97 } |
102 #endif // SYZYASAN && COMPILER_MSVC | 98 #endif // SYZYASAN && COMPILER_MSVC |
103 | 99 |
104 } // namespace debug | 100 } // namespace debug |
105 } // namespace base | 101 } // namespace base |
OLD | NEW |