[sanitizer] Fix crash on empty strings.

Reviewed By: eugenis

Differential Revision: https://reviews.llvm.org/D95431
This commit is contained in:
Vyacheslav Chigrin 2021-01-27 13:07:37 -08:00 committed by Evgenii Stepanov
parent e53247ca42
commit f79937140d
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}