[Top][All Lists]

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

[Bug binutils/16595] gdb.base/readline-ask load -fsanitize=address error

From: cvs-commit at gcc dot gnu.org
Subject: [Bug binutils/16595] gdb.base/readline-ask load -fsanitize=address error
Date: Mon, 17 Feb 2014 07:34:11 +0000


--- Comment #3 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  024a23103f04282872d4352302b1bfe04391a7a4 (commit)
      from  e7d1c40ce59ff355d2a51ff64a657c772eabbbfe (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 -----------------------------------------------------------------

commit 024a23103f04282872d4352302b1bfe04391a7a4
Author: Jan Kratochvil <address@hidden>
Date:   Mon Feb 17 08:32:22 2014 +0100

    PR binutils/16595

    abfd->section_count unexpectedly changes between 218 and 248 in:

    150 bfd_simple_get_relocated_section_contents (bfd *abfd,
    218   saved_offsets = malloc (sizeof (struct saved_output_info)
    219                           * abfd->section_count);
    230      _bfd_generic_link_add_symbols (abfd, &link_info);
    248   bfd_map_over_sections (abfd, simple_restore_output_info,

    _bfd_generic_link_add_symbols increases section_count

    and simple_restore_output_info later reads unallocated part of

    READ of size 8 at 0x601c0000c5c0 thread T0
        #0 0x1124770 in simple_restore_output_info (.../gdb/gdb+0x1124770)
        #1 0x10ecd51 in bfd_map_over_sections (.../gdb/gdb+0x10ecd51)
        #2 0x1125150 in bfd_simple_get_relocated_section_contents

    2014-02-17  Jan Kratochvil  <address@hidden>

        PR binutils/16595
        * simple.c (struct saved_offsets): New.
        (simple_save_output_info): Use it for ptr.
        (simple_restore_output_info): Use it for ptr.  Check section_count.
        (bfd_simple_get_relocated_section_contents): Use it for saved_offsets.


Summary of changes:
 bfd/ChangeLog |    8 ++++++++
 bfd/simple.c  |   42 +++++++++++++++++++++++++++++-------------
 2 files changed, 37 insertions(+), 13 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]