mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-02-04 00:06:50 +00:00
[sanitizer] Fix crash on empty strings.
Patch by Vyacheslav Chigrin. Reviewed By: eugenis Differential Revision: https://reviews.llvm.org/D95431
This commit is contained in:
parent
5d3dca24aa
commit
262c50856a
@ -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…
x
Reference in New Issue
Block a user