[PATCH] D52566: [asan] [windows] Don't use CheckFailed in dynamic runtime thunk mode

Martin Storsjö via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 26 11:33:36 PDT 2018


mstorsjo created this revision.
mstorsjo added reviewers: cryptoad, rnk.
Herald added subscribers: Sanitizers, kubamracek.

Since SVN r342651, CheckFailed isn't exported from asan-dynamic.


Repository:
  rCRT Compiler Runtime

https://reviews.llvm.org/D52566

Files:
  lib/asan/asan_globals_win.cc


Index: lib/asan/asan_globals_win.cc
===================================================================
--- lib/asan/asan_globals_win.cc
+++ lib/asan/asan_globals_win.cc
@@ -29,7 +29,7 @@
   __asan_global *end = &__asan_globals_end;
   uptr bytediff = (uptr)end - (uptr)start;
   if (bytediff % sizeof(__asan_global) != 0) {
-#ifdef SANITIZER_DLL_THUNK
+#if defined(SANITIZER_DLL_THUNK) || defined(SANITIZER_DYNAMIC_RUNTIME_THUNK)
     __debugbreak();
 #else
     CHECK("corrupt asan global array");


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D52566.167168.patch
Type: text/x-patch
Size: 500 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180926/a4457736/attachment.bin>


More information about the llvm-commits mailing list