mirror of
https://github.com/yuzu-emu/breakpad.git
synced 2024-11-27 22:34:18 +01:00
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:
parent
4d0c21b9a5
commit
41474d905f
@ -158,6 +158,7 @@ ExploitabilityRating ExploitabilityLinux::CheckPlatformExploitability() {
|
|||||||
bool ExploitabilityLinux::EndedOnIllegalWrite(uint64_t instruction_ptr) {
|
bool ExploitabilityLinux::EndedOnIllegalWrite(uint64_t instruction_ptr) {
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
BPLOG(INFO) << "MinGW does not support fork and exec. Terminating method.";
|
BPLOG(INFO) << "MinGW does not support fork and exec. Terminating method.";
|
||||||
|
return false;
|
||||||
#else
|
#else
|
||||||
// Get memory region containing instruction pointer.
|
// Get memory region containing instruction pointer.
|
||||||
MinidumpMemoryList* memory_list = dump_->GetMemoryList();
|
MinidumpMemoryList* memory_list = dump_->GetMemoryList();
|
||||||
@ -219,9 +220,7 @@ bool ExploitabilityLinux::EndedOnIllegalWrite(uint64_t instruction_ptr) {
|
|||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // _WIN32
|
#endif // _WIN32
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ExploitabilityLinux::StackPointerOffStack(uint64_t stack_ptr) {
|
bool ExploitabilityLinux::StackPointerOffStack(uint64_t stack_ptr) {
|
||||||
|
Loading…
Reference in New Issue
Block a user