Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3757)

Unified Diff: base/debug/asan_invalid_access.h

Issue 339543002: Export ASAN helpers for component builds. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/debug/asan_invalid_access.h
diff --git a/base/debug/asan_invalid_access.h b/base/debug/asan_invalid_access.h
index eee7dcbed73c80c32e34191e45a65ecb7a3f623e..65519878f12a707fe67d04826917d0cdf613fcd5 100644
--- a/base/debug/asan_invalid_access.h
+++ b/base/debug/asan_invalid_access.h
@@ -8,6 +8,7 @@
#ifndef BASE_DEBUG_ASAN_INVALID_ACCESS_H_
#define BASE_DEBUG_ASAN_INVALID_ACCESS_H_
+#include "base/base_export.h"
#include "base/compiler_specific.h"
namespace base {
@@ -16,13 +17,13 @@ namespace debug {
#if defined(ADDRESS_SANITIZER) || defined(SYZYASAN)
// Generates an heap buffer overflow.
-NOINLINE void AsanHeapOverflow();
+BASE_EXPORT NOINLINE void AsanHeapOverflow();
// Generates an heap buffer underflow.
-NOINLINE void AsanHeapUnderflow();
+BASE_EXPORT NOINLINE void AsanHeapUnderflow();
// Generates an use after free.
-NOINLINE void AsanHeapUseAfterFree();
+BASE_EXPORT NOINLINE void AsanHeapUseAfterFree();
#endif // ADDRESS_SANITIZER || SYZYASAN
@@ -32,11 +33,11 @@ NOINLINE void AsanHeapUseAfterFree();
// Corrupts a memory block and makes sure that the corruption gets detected when
// we try to free this block.
-NOINLINE void AsanCorruptHeapBlock();
+BASE_EXPORT NOINLINE void AsanCorruptHeapBlock();
// Corrupts the heap and makes sure that the corruption gets detected when a
// crash occur.
-NOINLINE void AsanCorruptHeap();
+BASE_EXPORT NOINLINE void AsanCorruptHeap();
#endif // SYZYASAN
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698