[Bug binutils/26005] [size] crash with ASAN in bfd_section_from_shdr

2020-06-24 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26005

Alan Modra  changed:

   What|Removed |Added

 CC||featherrain26 at gmail dot com

--- Comment #7 from Alan Modra  ---
*** Bug 26166 has been marked as a duplicate of this bug. ***

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


[Bug binutils/26005] [size] crash with ASAN in bfd_section_from_shdr

2020-06-22 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26005

Alan Modra  changed:

   What|Removed |Added

 CC||feidiyin at gmail dot com

--- Comment #6 from Alan Modra  ---
*** Bug 26147 has been marked as a duplicate of this bug. ***

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


[Bug binutils/26005] [size] crash with ASAN in bfd_section_from_shdr

2020-05-19 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=26005

--- Comment #5 from cvs-commit at gcc dot gnu.org  ---
The master branch has been updated by Nick Clifton :

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

commit 6fd1d259e98354236fafd14ec05f3d6a377ede9f
Author: Gunther Nikl 
Date:   Tue May 19 17:32:26 2020 +0100

Fix thinko in recent update to bfd_section_from_shdr.

PR 26005
* elf.c (bfd_section_from_shdr): Replace bfd_malloc + memset with
bfd_zmalloc to allocate memory for the sections_being_created
array.

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


[Bug binutils/26005] [size] crash with ASAN in bfd_section_from_shdr

2020-05-18 Thread nickc at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26005

--- Comment #4 from Nick Clifton  ---
*** Bug 26009 has been marked as a duplicate of this bug. ***

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


[Bug binutils/26005] [size] crash with ASAN in bfd_section_from_shdr

2020-05-18 Thread nickc at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26005

--- Comment #3 from Nick Clifton  ---
*** Bug 26008 has been marked as a duplicate of this bug. ***

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


[Bug binutils/26005] [size] crash with ASAN in bfd_section_from_shdr

2020-05-18 Thread nickc at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26005

Nick Clifton  changed:

   What|Removed |Added

 Resolution|--- |FIXED
 CC||nickc at redhat dot com
 Status|UNCONFIRMED |RESOLVED

--- Comment #2 from Nick Clifton  ---
Hi Ahcheong,

  Thanks for reporting this bug.  I have checked in a small patch to fix the
  problem.

Cheers
  Nick

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


[Bug binutils/26005] [size] crash with ASAN in bfd_section_from_shdr

2020-05-18 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=26005

--- Comment #1 from cvs-commit at gcc dot gnu.org  ---
The master branch has been updated by Nick Clifton :

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

commit ed02cdb5b78d17429f7e873acc49d94a5a0223d8
Author: Nick Clifton 
Date:   Mon May 18 15:52:03 2020 +0100

Fix a use-after-free bug in the BFD library when scanning a corrupt ELF
file.

PR 26005
* elf.c (bfd_section_from_shdr): Use bfd_malloc to allocate memory
for the sections_being_created array.

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