aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authornealsid <nealsid@4c0a9323-5329-0410-9bdc-e9ce6186880e>2009-10-30 23:30:39 +0000
committernealsid <nealsid@4c0a9323-5329-0410-9bdc-e9ce6186880e>2009-10-30 23:30:39 +0000
commit0e76d1fdf3e57e23f85a4194bc9dec476bcf26ae (patch)
treeb25740ddc2fdde5bbede70de9dc113d6093aa9d4 /src
parentFixed style error (diff)
downloadbreakpad-0e76d1fdf3e57e23f85a4194bc9dec476bcf26ae.tar.xz
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
Diffstat (limited to 'src')
-rw-r--r--src/processor/stackwalker_x86.cc2
1 files changed, 1 insertions, 1 deletions
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;