diff options
author | Nick Clifton <nickc@redhat.com> | 2015-02-10 14:11:00 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2015-02-10 14:11:00 +0000 |
commit | 77ef86547510cee3a2bff27bea9f19f0b2715bae (patch) | |
tree | cf37b63c2505ce132ac49d286340751c4caebe7f /bfd/ChangeLog | |
parent | b677c4562dea82ffaf413e7e9311ca4b9c1c6ec6 (diff) | |
download | gdb-77ef86547510cee3a2bff27bea9f19f0b2715bae.zip gdb-77ef86547510cee3a2bff27bea9f19f0b2715bae.tar.gz gdb-77ef86547510cee3a2bff27bea9f19f0b2715bae.tar.bz2 |
Fix memory access violations triggered by running objdump compiled with out-of-bounds sanitization checking.
PR binutils/17512
* dwarf.c (eh_addr_size): Use an unsigned type.
(size_of_encoded_value): Return an unsigned type.
(read_leb128): Break if the shift becomes too big.
(process_extended_line_op): Do not read the address if the length
is too long.
(read_cie): Warn and fail if the pointer size or segment size are
too big.
* dwarf.h (DWARF2_External_LineInfo): Delete unused and incorrect
structure definition.
(DWARF2_External_PubNames): Likewise.
(DWARF2_External_CompUnit): Likewise.
(DWARF2_External_ARange): Likewise.
(DWARF2_Internal_LineInfo): Use dwarf_vma type for
li_prologue_length.
(eh_addr_size): Update prototype.
* coffcode.h (styp_to_sec_flags): Use an unsigned long type to
hold the flag bits.
* peXXigen.c (pe_print_reloc): Use unsigned types to hold the
size and number of relocs.
(pe_print_debugdata): Use a 32-bit aligned buffer to store the
codeview record.
* versados.c (process_otr): Check the esdid value before using it
to access the EDATA.
Diffstat (limited to 'bfd/ChangeLog')
-rw-r--r-- | bfd/ChangeLog | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 650e8ee..d5b50b7 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,15 @@ +2015-02-10 Nick Clifton <nickc@redhat.com> + + PR binutils/17512 + * coffcode.h (styp_to_sec_flags): Use an unsigned long type to + hold the flag bits. + * peXXigen.c (pe_print_reloc): Use unsigned types to hold the + size and number of relocs. + (pe_print_debugdata): Use a 32-bit aligned buffer to store the + codeview record. + * versados.c (process_otr): Check the esdid value before using it + to access the EDATA. + 2015-02-09 Ed Maste <emaste@freebsd.org> * elf32-i386.c (elf_i386_get_plt_sym_val): Avoid incrementing |