mirror of
https://github.com/yuzu-emu/breakpad.git
synced 2024-11-28 02:44:19 +01:00
issue 151 - Crash when processing file names less than 4 bytes. r=me
git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@196 4c0a9323-5329-0410-9bdc-e9ce6186880e
This commit is contained in:
parent
43a81daaba
commit
8408a209cd
@ -110,8 +110,9 @@ SymbolSupplier::SymbolResult SimpleSymbolSupplier::GetSymbolFileAtPath(
|
||||
// name ends in .pdb, strip the .pdb. Otherwise, add .sym to the non-.pdb
|
||||
// name.
|
||||
path.append("/");
|
||||
string debug_file_extension =
|
||||
debug_file_name.substr(debug_file_name.size() - 4);
|
||||
string debug_file_extension;
|
||||
if (debug_file_name.size() > 4)
|
||||
debug_file_extension = debug_file_name.substr(debug_file_name.size() - 4);
|
||||
transform(debug_file_extension.begin(), debug_file_extension.end(),
|
||||
debug_file_extension.begin(), tolower);
|
||||
if (debug_file_extension == ".pdb") {
|
||||
|
Loading…
Reference in New Issue
Block a user