Fix #23581 - (again) another infinite loop in the dwarf parser ##crash

This commit is contained in:
pancake 2024-11-16 13:32:45 +01:00 committed by pancake
parent 21f9839ab0
commit 0a8deff545

View File

@ -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;