[Top][All Lists]

[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: Thu, 12 Feb 2015 16:46:14 +0000


--- Comment #200 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot 
gnu.org> ---
The master branch has been updated by Nick Clifton <address@hidden>:


commit dbb3fbbb1a3b387a0d33dfd5764cf92bc3da7f41
Author: Nick Clifton <address@hidden>
Date:   Thu Feb 12 16:45:11 2015 +0000

    Fix memory access violations triggered by running addr2line on fuzzed

        PR binutils/17512
        * dwarf.c (read_1_byte, read_1_signed_byte, read_2_bytes)
        (read_4_bytes, read_8_bytes, read_n_bytes, read_string)
        (read_indirect_string, read_alt_indirect_string)
        (read_alt_indirect_ref, read_address, read_abbrevs)
        (read_attribute_value, read_attribute, decode_line_info)
        (find_abstract_instance_name, read_rangelist)
        (scan_unit_for_symbols, parse_comp_unit)
        (_bfd_dwarf2_find_nearest_line): Harden DWARF reading code.  Pass
        end pointers to reading functions and check for offsets taking
        pointers out of range.  Replace calls to read_*_leb128 with calls
        to safe_read_leb128.

        (* elf64-ppc.c (opd_entry_value): Add a check for an overlarge
        * syms.c (_bfd_stab_section_find_nearest_line): Add checks for
        computed file_name address being before the start of the string

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]