mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-20 01:50:24 +08:00
Fix a seg-fault in readelf when parsing corrupt HPPA unwind tables.
PR 23531 * readelf.c (hppa_process_unwind): Only dump the unwind table if the data was successfully read in.
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
2018-08-21 L. Simon <l.simon@samsung.com>
|
||||||
|
|
||||||
|
PR 23531
|
||||||
|
* readelf.c (hppa_process_unwind): Only dump the unwind table if
|
||||||
|
the data was successfully read in.
|
||||||
|
|
||||||
2018-08-18 Alan Modra <amodra@gmail.com>
|
2018-08-18 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
* testsuite/lib/binutils-common.exp (is_elf64): Use directory of
|
* testsuite/lib/binutils-common.exp (is_elf64): Use directory of
|
||||||
|
@ -8130,8 +8130,8 @@ hppa_process_unwind (Filedata * filedata)
|
|||||||
|
|
||||||
if (! slurp_hppa_unwind_table (filedata, &aux, sec))
|
if (! slurp_hppa_unwind_table (filedata, &aux, sec))
|
||||||
res = FALSE;
|
res = FALSE;
|
||||||
|
|
||||||
if (aux.table_len > 0)
|
if (res && aux.table_len > 0)
|
||||||
{
|
{
|
||||||
if (! dump_hppa_unwind (filedata, &aux))
|
if (! dump_hppa_unwind (filedata, &aux))
|
||||||
res = FALSE;
|
res = FALSE;
|
||||||
|
Reference in New Issue
Block a user