From 63ec9482cf357c4312e3c1bd803b915bb7355dc1 Mon Sep 17 00:00:00 2001 From: Leonard Grey Date: Fri, 13 Oct 2023 16:38:27 -0400 Subject: [PATCH] Windows: don't compile HandleHeapCorruption on ASAN f145b54e8378c8e2bd1fbb427684ca9b4c54ea9c put the only reference to this in a non-ASAN block, so we're hitting an unused function warning rolling into Chromium Bug: crashpad:464 Change-Id: I225debd48a255aa5214e02a6821dcd72c618f141 Reviewed-on: https://chromium-review.googlesource.com/c/crashpad/crashpad/+/4939552 Reviewed-by: Mark Mentovai Commit-Queue: Leonard Grey --- client/crashpad_client_win.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/crashpad_client_win.cc b/client/crashpad_client_win.cc index aafb59f4..8ba75482 100644 --- a/client/crashpad_client_win.cc +++ b/client/crashpad_client_win.cc @@ -187,6 +187,7 @@ LONG WINAPI UnhandledExceptionHandler(EXCEPTION_POINTERS* exception_pointers) { return EXCEPTION_CONTINUE_SEARCH; } +#if !defined(ADDRESS_SANITIZER) LONG WINAPI HandleHeapCorruption(EXCEPTION_POINTERS* exception_pointers) { if (exception_pointers->ExceptionRecord->ExceptionCode == STATUS_HEAP_CORRUPTION) { @@ -195,6 +196,7 @@ LONG WINAPI HandleHeapCorruption(EXCEPTION_POINTERS* exception_pointers) { return EXCEPTION_CONTINUE_SEARCH; } +#endif void HandleAbortSignal(int signum) { DCHECK_EQ(signum, SIGABRT);