Skip to content

Commit f799371

Browse files
vchigrineugenis
authored andcommitted
[sanitizer] Fix crash on empty strings.
Reviewed By: eugenis Differential Revision: https://reviews.llvm.org/D95431
1 parent e53247c commit f799371

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler-rt/lib/sanitizer_common/sanitizer_symbolizer_libcdep.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ void ParseSymbolizePCOutput(const char *str, SymbolizedStack *res) {
356356
InternalFree(info->function);
357357
info->function = 0;
358358
}
359-
if (0 == internal_strcmp(info->file, "??")) {
359+
if (info->file && 0 == internal_strcmp(info->file, "??")) {
360360
InternalFree(info->file);
361361
info->file = 0;
362362
}

0 commit comments

Comments
 (0)