From 41474d905f705747cd0d2989c9ff41d85b3fcc8a Mon Sep 17 00:00:00 2001 From: Mark Brand Date: Tue, 22 Nov 2022 05:08:05 -0500 Subject: [PATCH] Fix Linux ASan Afl build error. Bug: 1385147 Change-Id: I69ebfa1adbc1c2a17decf0079812c4f507e3332c Reviewed-on: https://chromium-review.googlesource.com/c/breakpad/breakpad/+/4046961 Reviewed-by: Mike Frysinger --- src/processor/exploitability_linux.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/processor/exploitability_linux.cc b/src/processor/exploitability_linux.cc index 44195a2a..63a12656 100644 --- a/src/processor/exploitability_linux.cc +++ b/src/processor/exploitability_linux.cc @@ -158,6 +158,7 @@ ExploitabilityRating ExploitabilityLinux::CheckPlatformExploitability() { bool ExploitabilityLinux::EndedOnIllegalWrite(uint64_t instruction_ptr) { #ifdef _WIN32 BPLOG(INFO) << "MinGW does not support fork and exec. Terminating method."; + return false; #else // Get memory region containing instruction pointer. MinidumpMemoryList* memory_list = dump_->GetMemoryList(); @@ -219,9 +220,7 @@ bool ExploitabilityLinux::EndedOnIllegalWrite(uint64_t instruction_ptr) { } else { return false; } - #endif // _WIN32 - return false; } bool ExploitabilityLinux::StackPointerOffStack(uint64_t stack_ptr) {