mirror of
https://github.com/radareorg/radare2.git
synced 2025-01-27 08:12:44 +00:00
Fix #2555 - Invalid read in r_bin_dwarf_parse_lnp_header
This commit is contained in:
parent
9f5fe47783
commit
ba4d3e8733
@ -258,7 +258,13 @@ static const ut8 *r_bin_dwarf_parse_lnp_header (
|
||||
free (str);
|
||||
break;
|
||||
}
|
||||
if (f) fprintf (f, "INCLUDEDIR (%s)\n", buf);
|
||||
if (*str != '/' && *str != '.') {
|
||||
// no more paths in here
|
||||
break;
|
||||
}
|
||||
if (f) {
|
||||
fprintf (f, "INCLUDEDIR (%s)\n", str);
|
||||
}
|
||||
add_sdb_include_dir (s, str, i);
|
||||
free (str);
|
||||
i++;
|
||||
|
Loading…
x
Reference in New Issue
Block a user