Memory leak in disassemble_init_for_target

2019-07-18 Thread Philippe Antoine
Hi everyone,

My name is Philippe Antoine
I have been fuzzing binutils disassembler.
And I would like to report two bugs, and propose the fuzz target.
This first mail is for the first one.

This is a memory leak in function disassemble_init_for_target
Binutils version is from commit d8f68fcb9378b5ab1c945fa676e11da15be56dd6
disassemble_init_for_target calls cgen_bitset_create for certain architectures 
: bfd_arch_m32c and bfd_arch_bpf
And is seems to me that this ressource gets never freed (in programs such as 
objdump) (or am I missing a clean function to be called ?)

Best regards,
Philippe

PS : more mails follow

smime.p7s
Description: S/MIME cryptographic signature
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


Abort in arc_insn_length

2019-07-18 Thread Philippe Antoine
Hi everyone,

My name is Philippe Antoine
I have been fuzzing binutils disassembler.
This is the second mail for the second bug.

Function arc_insn_length calls abort
Binutils version is from commit d8f68fcb9378b5ab1c945fa676e11da15be56dd6
It seems to me that this function should return failure instead of aborting
The patch could be as attached.

Best regards,
Philippe



arc.diff
Description: Binary data


smime.p7s
Description: S/MIME cryptographic signature
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/24819] ld -r fails to handle .init_array section in comdat group

2019-07-18 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=24819

--- Comment #2 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=54d7dae59a2239720c848985a7d50a0a8b3319eb

commit 54d7dae59a2239720c848985a7d50a0a8b3319eb
Author: H.J. Lu 
Date:   Thu Jul 18 08:01:45 2019 -0700

ld -r: Don't merge with member of output section group

When doing a relocatable link, members of input section group are
placed in their own output sections.  We need to make sure that no
input sections are merged with member of output section group.

PR ld/24819
* emultempl/elf32.em (elf_orphan_compatible): Return FALSE for
member of output section group when doing a relocatable link.
* testsuite/ld-elf/pr24819.d: New file.
* testsuite/ld-elf/pr24819.s: Likewise.

-- 
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 ld/24574] extern symbols in dlls are misleading under debugger

2019-07-18 Thread sbence92 at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=24574

--- Comment #8 from szabo bence  ---
ping

-- 
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 ld/23425] unresolved symbol diagnostic ends up calling find_abstract_instance with relocations applied causing spurious 'DWARF error: invalid abstract instance DIE ref'

2019-07-18 Thread noloader at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=23425

Jeffrey Walton  changed:

   What|Removed |Added

 CC||noloader at gmail dot com

-- 
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