From 6c05f5ddd9de3abeb720c2f57c0cefbeaec5d1fb Mon Sep 17 00:00:00 2001 From: "kmixter@chromium.org" Date: Wed, 8 Dec 2010 02:14:17 +0000 Subject: [PATCH] Fix segv in network_source_line_resolver_server_unittest R=siyangxie BUG=409 git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@737 4c0a9323-5329-0410-9bdc-e9ce6186880e --- src/processor/stackwalker.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/processor/stackwalker.cc b/src/processor/stackwalker.cc index 58de27dc..b0f0c4b2 100644 --- a/src/processor/stackwalker.cc +++ b/src/processor/stackwalker.cc @@ -98,7 +98,7 @@ bool Stackwalker::Walk(CallStack *stack) { module->code_file()) == no_symbol_modules_.end() && supplier_) { string symbol_file; - char *symbol_data; + char *symbol_data = NULL; SymbolSupplier::SymbolResult symbol_result = supplier_->GetCStringSymbolData(module, system_info_, @@ -214,7 +214,7 @@ bool Stackwalker::InstructionAddressSeemsValid(u_int64_t address) { if (!resolver_->HasModule(module)) { string symbol_file; - char *symbol_data; + char *symbol_data = NULL; SymbolSupplier::SymbolResult symbol_result = supplier_->GetCStringSymbolData(module, system_info_, &symbol_file, &symbol_data);