bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/17512] libbfd/binutils: crashes on fuzzed samples


From: cvs-commit at gcc dot gnu.org
Subject: [Bug binutils/17512] libbfd/binutils: crashes on fuzzed samples
Date: Tue, 06 Jan 2015 16:08:21 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=17512

--- Comment #148 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot 
gnu.org> ---
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "gdb and binutils".

The branch, master has been updated
       via  85880250e591a51624d24db653aaace0c5ce5943 (commit)
      from  fce10a8494efa8faec67b718f25e06d3d71694b3 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=85880250e591a51624d24db653aaace0c5ce5943

commit 85880250e591a51624d24db653aaace0c5ce5943
Author: Nick Clifton <address@hidden>
Date:   Tue Jan 6 16:06:45 2015 +0000

    Fixes for memory access violations in the coffdump program.

        PR binutils/17512
        * coffdump.c (dump_coff_section): Check for a symbol being
        available before printing its name.
        (main): Check the return value from coff_grok.
        * coffgrok.c: Reformat and tidy.
        Add range checks to most functions.
        (coff_grok): Return NULL if the input bfd is not in a COFF
        format.
        * coffgrok.h: Reformat and tidy.
        (struct coff_section): Change the nrelocs field to unsigned.
        * srconv.c (main): Check the return value from coff_grok.

        * coff-i860.c (CALC_ADDEND): Always set an addend value.
        * tekhex.c (getvalue): Add an end pointer parameter.  Use it to
        avoid reading off the end of the buffer.
        (getsym): Likewise.
        (first_phase): Likewise.
        (pass_over): Pass an end pointer to the invoked function.

-----------------------------------------------------------------------

Summary of changes:
 bfd/ChangeLog       |   10 ++
 bfd/coff-i860.c     |    5 +-
 bfd/tekhex.c        |   33 +++---
 binutils/ChangeLog  |   14 ++
 binutils/coffdump.c |   20 ++--
 binutils/coffgrok.c |  351 ++++++++++++++++++++++++++++++++++-----------------
 binutils/coffgrok.h |  255 ++++++++++++++++++-------------------
 binutils/srconv.c   |   10 +-
 8 files changed, 421 insertions(+), 277 deletions(-)

-- 
You are receiving this mail because:
You are on the CC list for the bug.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]