From 0e76d1fdf3e57e23f85a4194bc9dec476bcf26ae Mon Sep 17 00:00:00 2001 From: nealsid Date: Fri, 30 Oct 2009 23:30:39 +0000 Subject: Fix when walking stack when no module list is present and the return address has to be scanned. http://breakpad.appspot.com/36002 R=doshimun A=nealsid git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@420 4c0a9323-5329-0410-9bdc-e9ce6186880e --- src/processor/stackwalker_x86.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/processor/stackwalker_x86.cc b/src/processor/stackwalker_x86.cc index 4a7e811d..aeb18a9f 100644 --- a/src/processor/stackwalker_x86.cc +++ b/src/processor/stackwalker_x86.cc @@ -447,7 +447,7 @@ bool StackwalkerX86::ScanForReturnAddress(u_int32_t location_start, if (!memory_->GetMemoryAtAddress(location, &eip)) break; - if (modules_->GetModuleForAddress(eip) && + if (modules_ && modules_->GetModuleForAddress(eip) && InstructionAddressSeemsValid(eip)) { eip_found = eip; -- cgit v1.2.1