aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormmentovai <mmentovai@4c0a9323-5329-0410-9bdc-e9ce6186880e>2007-04-25 15:17:19 +0000
committermmentovai <mmentovai@4c0a9323-5329-0410-9bdc-e9ce6186880e>2007-04-25 15:17:19 +0000
commit329e6a963043bf3cc687d1b0f5740d5bf9cd77e0 (patch)
treeb92c9177b965cab28f0a635b5d46c4828d831d0d /src
parentTruncated Windows/x86 stacks when using FPO. Add stack scanning to recover (diff)
downloadbreakpad-329e6a963043bf3cc687d1b0f5740d5bf9cd77e0.tar.xz
Emergency crash fix, tbr=bryner
git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@147 4c0a9323-5329-0410-9bdc-e9ce6186880e
Diffstat (limited to 'src')
-rw-r--r--src/common/windows/pdb_source_line_writer.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/windows/pdb_source_line_writer.cc b/src/common/windows/pdb_source_line_writer.cc
index 2fff67b0..0392627f 100644
--- a/src/common/windows/pdb_source_line_writer.cc
+++ b/src/common/windows/pdb_source_line_writer.cc
@@ -615,7 +615,8 @@ int PDBSourceLineWriter::GetFunctionStackParamSize(IDiaSymbol *function) {
goto next_child;
}
- if (FAILED(child->get_type(&child_type))) {
+ // IDiaSymbol::get_type can succeed but still pass back a NULL value.
+ if (FAILED(child->get_type(&child_type)) || !child_type) {
goto next_child;
}