mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-23 05:09:43 +00:00
Fix #23581 - (again) another infinite loop in the dwarf parser ##crash
This commit is contained in:
parent
0c9f8c4266
commit
21f9839ab0
@ -844,8 +844,12 @@ static const ut8 *parse_line_header_source_dwarf5(RBin *bin, RBinFile *bf, const
|
||||
hdr->file_names[count].name = name;
|
||||
}
|
||||
} else {
|
||||
add_sdb_include_dir (sdb, name, index);
|
||||
free (name);
|
||||
if (name) {
|
||||
add_sdb_include_dir (sdb, name, index);
|
||||
free (name);
|
||||
} else {
|
||||
buf = NULL;
|
||||
}
|
||||
}
|
||||
name = NULL;
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user