diff options
author | Nick Clifton <nickc@redhat.com> | 2015-02-03 20:42:36 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2015-02-03 20:42:36 +0000 |
commit | 570286220e28e606e199b37a06cd199cadb592ba (patch) | |
tree | 4bab2058d947ccc70a61bde391202554159aee79 /binutils/ChangeLog | |
parent | a7606d8083c9e217294f6e47a8d2903716c6337c (diff) | |
download | gdb-570286220e28e606e199b37a06cd199cadb592ba.zip gdb-570286220e28e606e199b37a06cd199cadb592ba.tar.gz gdb-570286220e28e606e199b37a06cd199cadb592ba.tar.bz2 |
Fix memory access violations triggered by running readelf on fuzzed binaries.
PR binutils/17531
* dwarf.c (process_debug_info): Add range check.
(display_debug_pubnames_worker): Likewise.
(display_gdb_index): Fix range check.
(process_cu_tu_index): Add range check.
* readelf.c (get_data): Change parameter types from size_t to
bfd_size_type. Add checks for loss of accuracy when casting from
bfd_size_type to size_t.
(get_dynamic_data): Likewise.
(process_section_groups): Limit number of error messages.
Diffstat (limited to 'binutils/ChangeLog')
-rw-r--r-- | binutils/ChangeLog | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 4a6de8d..4e5f4f2 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,5 +1,18 @@ 2015-02-03 Nick Clifton <nickc@redhat.com> + PR binutils/17531 + * dwarf.c (process_debug_info): Add range check. + (display_debug_pubnames_worker): Likewise. + (display_gdb_index): Fix range check. + (process_cu_tu_index): Add range check. + * readelf.c (get_data): Change parameter types from size_t to + bfd_size_type. Add checks for loss of accuracy when casting from + bfd_size_type to size_t. + (get_dynamic_data): Likewise. + (process_section_groups): Limit number of error messages. + +2015-02-03 Nick Clifton <nickc@redhat.com> + PR binutils/17512 * objdump.c (display_any_bfd): Fail if archives nest too deeply. |