[Bug binutils/22230] New: heap-based buffer overflow in display_debug_macro (dwarf.c)

2017-09-30 Thread ago at gentoo dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=22230

Bug ID: 22230
   Summary: heap-based buffer overflow in display_debug_macro
(dwarf.c)
   Product: binutils
   Version: 2.30 (HEAD)
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: ago at gentoo dot org
  Target Milestone: ---

Created attachment 10493
  --> https://sourceware.org/bugzilla/attachment.cgi?id=10493&action=edit
stacktrace.txt

On 2.29.51.20170929:

#objdump -g -D -F -S --file-start-context -l -R -s -W -G -T --special-syms -x
$FILE

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug binutils/22230] heap-based buffer overflow in display_debug_macro (dwarf.c)

2017-09-30 Thread ago at gentoo dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=22230

--- Comment #1 from Agostino Sarubbo  ---
Created attachment 10494
  --> https://sourceware.org/bugzilla/attachment.cgi?id=10494&action=edit
testcase

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug binutils/21978] objdump does not display line numbers in certain cases

2017-09-30 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=21978

--- Comment #3 from cvs-commit at gcc dot gnu.org  ---
The master branch has been updated by H.J. Lu :

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=2715765b0fd357b4b58166850a23f509aacde161

commit 2715765b0fd357b4b58166850a23f509aacde161
Author: H.J. Lu 
Date:   Sat Sep 30 03:04:52 2017 -0700

Add a test for PR binutils/21978

PR binutils/21978
* testsuite/ld-elf/pr21978.od: New file.
* testsuite/ld-elf/pr21978a.c: Likewise.
* testsuite/ld-elf/pr21978b.c: Likewise.
* testsuite/ld-elf/shared.exp: Run PR binutils/21978 test.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug binutils/22230] heap-based buffer overflow in display_debug_macro (dwarf.c)

2017-09-30 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=22230

Alan Modra  changed:

   What|Removed |Added

 Status|UNCONFIRMED |ASSIGNED
   Last reconfirmed||2017-09-30
   Assignee|unassigned at sourceware dot org   |amodra at gmail dot com
 Ever confirmed|0   |1

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug binutils/22047] Heap out of bounds read in parse_comp_unit()

2017-09-30 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=22047

--- Comment #4 from cvs-commit at gcc dot gnu.org  ---
The master branch has been updated by Alan Modra :

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=4b04bba2eb6b646e11a2c38c77667875b3db6828

commit 4b04bba2eb6b646e11a2c38c77667875b3db6828
Author: Alan Modra 
Date:   Sun Oct 1 12:07:59 2017 +1030

PR22047, Heap out of bounds read in parse_comp_unit

Like the PR22230 fix, we can allocate a buffer with an extra byte
rather than letting bfd_simple_get_relocated_section_contents malloc
and return a buffer.  Much better than allocating another buffer
afterwards.

PR 22047
* dwarf2.c (read_section): Allocate buffer with extra byte for
bfd_simple_get_relocated_section_contents rather than copying
afterwards.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug binutils/22230] heap-based buffer overflow in display_debug_macro (dwarf.c)

2017-09-30 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=22230

--- Comment #2 from cvs-commit at gcc dot gnu.org  ---
The master branch has been updated by Alan Modra :

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=4f1881b94473f1034f950feb863b464435a8fb5f

commit 4f1881b94473f1034f950feb863b464435a8fb5f
Author: Alan Modra 
Date:   Sun Oct 1 12:07:07 2017 +1030

PR22230, buffer overflow in display_debug_macro

PR 22230
* objdump.c (load_specific_debug_section): Allocate an extra byte
for a terminating NUL.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug binutils/22230] heap-based buffer overflow in display_debug_macro (dwarf.c)

2017-09-30 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=22230

Alan Modra  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED
   Target Milestone|--- |2.30

--- Comment #3 from Alan Modra  ---
Fixed

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug binutils/22047] Heap out of bounds read in parse_comp_unit()

2017-09-30 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=22047

Alan Modra  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 CC||amodra at gmail dot com
 Resolution|--- |FIXED
   Target Milestone|--- |2.29.1

--- Comment #5 from Alan Modra  ---
Fixed

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils