diff options
author | Nick Clifton <nickc@redhat.com> | 2020-10-21 17:42:42 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2020-10-21 17:42:42 +0100 |
commit | 596245135106b2a965d809e272dc7c758afdc98f (patch) | |
tree | ca542fe6fb240578801d6d813939fc1a95d471e5 /libctf | |
parent | c21f37a889dbf57077981970a1b6167a0dcb39af (diff) | |
download | binutils-596245135106b2a965d809e272dc7c758afdc98f.zip binutils-596245135106b2a965d809e272dc7c758afdc98f.tar.gz binutils-596245135106b2a965d809e272dc7c758afdc98f.tar.bz2 |
Work around problem in DWARF decoding library which can result in attempts to read arbitrary bytes as if they were an LEB128 encoded value.
* dwarf.c (skip_attr_bytes): Accept DWARF versions higher than 4
when processing the DW_FORM_ref_addr form.
Skip bytes in DW_FORM_block and DW_FORM_exprloc forms.
Handle DW_FORM_indirect.
(get_type_signedness): Allow a limited amount of recursion.
Do not attempt to decode types that use the DW_FORM_ref_addr form.
(read_and_display_attr_value): Do not attempt to decode types
that use the DW_FORM_ref_addr form.
Diffstat (limited to 'libctf')
0 files changed, 0 insertions, 0 deletions