forked from OSchip/llvm-project
[sanitizer] Fix crash on empty strings.
Reviewed By: eugenis Differential Revision: https://reviews.llvm.org/D95431
This commit is contained in:
parent
e53247ca42
commit
f79937140d
|
@ -356,7 +356,7 @@ void ParseSymbolizePCOutput(const char *str, SymbolizedStack *res) {
|
|||
InternalFree(info->function);
|
||||
info->function = 0;
|
||||
}
|
||||
if (0 == internal_strcmp(info->file, "??")) {
|
||||
if (info->file && 0 == internal_strcmp(info->file, "??")) {
|
||||
InternalFree(info->file);
|
||||
info->file = 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue