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 <vapier@chromium.org>
This commit is contained in:
Mark Brand 2022-11-22 05:08:05 -05:00 committed by Mike Frysinger
parent 4d0c21b9a5
commit 41474d905f

View file

@ -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) {