From db6b071a97893d5c7bf34e7fb171a0b710ea736d Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Wed, 3 Dec 2014 19:50:48 +0000 Subject: Fix memory access problems exposed by fuzzed binaries. PR binutils/17512 * objdump.c (free_debug_section): Reset the compress_status as well. * compress.c (bfd_get_full_section_contents): Fail if there are no section contents available when the compress_status is COMPRESS_SECTION_DONE. * libbfd.c (bfd_malloc): Refuse to allocate a negative size. (bfd_malloc2): Use bfd_malloc. (bfd_realloc): Refuse to reallocate a negative size. (bfd_realloc2): Use bfd_realloc. (bfd_realloc_or_free): Use bfd_realloc. (bfd_zmalloc): Use bfd_malloc. (bfd_zmalloc): Use bfd_malloc2. * opncls.c (bfd_alloc): Refuse to allocate a negative size. --- binutils/ChangeLog | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'binutils/ChangeLog') diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 2d28e1c..8740dd2 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,5 +1,11 @@ 2014-12-03 Nick Clifton + PR binutils/17512 + * objdump.c (free_debug_section): Reset the compress_status as + well. + +2014-12-03 Nick Clifton + PR binutils/17531 * readelf.c (get_machine_flags): Replace call to abort with a warning message and a return value. -- cgit v1.1