From 329e6a963043bf3cc687d1b0f5740d5bf9cd77e0 Mon Sep 17 00:00:00 2001 From: mmentovai Date: Wed, 25 Apr 2007 15:17:19 +0000 Subject: [PATCH] Emergency crash fix, tbr=bryner git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@147 4c0a9323-5329-0410-9bdc-e9ce6186880e --- src/common/windows/pdb_source_line_writer.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; }