mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-26 22:50:48 +00:00
Fix #23581 - (again) another infinite loop in the dwarf parser ##crash
This commit is contained in:
parent
21f9839ab0
commit
0a8deff545
@ -779,7 +779,8 @@ static const ut8 *parse_line_header_source_dwarf5(RBin *bin, RBinFile *bf, const
|
||||
buf += mylen + 1;
|
||||
} else {
|
||||
name = NULL;
|
||||
buf++;
|
||||
buf = NULL;
|
||||
// buf++;
|
||||
}
|
||||
}
|
||||
break;
|
||||
@ -799,6 +800,8 @@ static const ut8 *parse_line_header_source_dwarf5(RBin *bin, RBinFile *bf, const
|
||||
r_str_ansi_strip (name);
|
||||
r_str_replace_ch (name, '\n', 0, true);
|
||||
r_str_replace_ch (name, '\t', 0, true);
|
||||
} else {
|
||||
buf = NULL;
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user