PR27860, Segmentation fault on readelf -w
Well it didn't take long for the SAFE_BYTE_GET assert to trigger. PR 27860 * dwarf.c (display_debug_frames): Sanity check cie_off before attempting to read cie.
This commit is contained in:
parent
0746f49b1d
commit
d21f875d67
2 changed files with 8 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2021-05-13 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
|
PR 27860
|
||||||
|
* dwarf.c (display_debug_frames): Sanity check cie_off before
|
||||||
|
attempting to read cie.
|
||||||
|
|
||||||
2021-05-12 Alan Modra <amodra@gmail.com>
|
2021-05-12 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
* dwarf.c (process_extended_line_op): Don't bump data pointer past
|
* dwarf.c (process_extended_line_op): Don't bump data pointer past
|
||||||
|
|
|
@ -8708,6 +8708,8 @@ display_debug_frames (struct dwarf_section *section,
|
||||||
if (cie->chunk_start == look_for)
|
if (cie->chunk_start == look_for)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
else if (cie_off >= section->size)
|
||||||
|
cie = NULL;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
for (cie = forward_refs; cie ; cie = cie->next)
|
for (cie = forward_refs; cie ; cie = cie->next)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue