diff options
author | Nick Clifton <nickc@redhat.com> | 2014-11-07 13:39:45 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2014-11-07 13:39:45 +0000 |
commit | 071436c6e94be13904438b6eb70ee79c73354a61 (patch) | |
tree | 1bd6b97efe937fa1b33f582d82b2a5ee0d549a5f /bfd/dwarf2.c | |
parent | 56aedec7ab6a1da818ed900827e3a2eb1f5cc5d2 (diff) | |
download | gdb-071436c6e94be13904438b6eb70ee79c73354a61.zip gdb-071436c6e94be13904438b6eb70ee79c73354a61.tar.gz gdb-071436c6e94be13904438b6eb70ee79c73354a61.tar.bz2 |
Add more fixes for inavlid memory accesses triggered by corrupt files.
PR binutils/17531
* readelf.c (get_data): Avoid allocating memory when we know that
the read will fail.
(find_section_by_type): New function.
(get_unwind_section_word): Check for invalid symbol indicies.
Check for invalid reloc types.
(get_32bit_dynamic_section): Add range checks.
(get_64bit_dynamic_section): Add range checks.
(process_dynamic_section): Check for a corrupt time value.
(process_symbol_table): Add range checks.
(dump_section_as_strings): Add string length range checks.
(display_tag_value): Likewise.
(display_arm_attribute): Likewise.
(display_gnu_attribute): Likewise.
(display_tic6x_attribute): Likewise.
(display_msp430x_attribute): Likewise.
(process_mips_specific): Add range check.
Diffstat (limited to 'bfd/dwarf2.c')
0 files changed, 0 insertions, 0 deletions