[Bug binutils/31692] objdump fails .debug_info size check for compressed debug information

2024-05-10 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=31692

--- Comment #4 from Sourceware Commits  ---
The master branch has been updated by Alan Modra :

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

commit ad658482c1e4feec4ac99c8e7df17ff78d0c2996
Author: Alan Modra 
Date:   Fri May 10 22:15:06 2024 +0930

Re: PR31692, objdump fails .debug_info size check

The fuzzers found a hole.  bfd_section_size_insane doesn't check
!SEC_HAS_CONTENTS sections against file size for obvious reasons,
which allows fuzzed debug sections to be stupidly large.  Real debug
sections of course always have contents.

PR 31692
* objdump.c (load_specific_debug_section): Don't allow sections
without contents.

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


[Bug binutils/31692] objdump fails .debug_info size check for compressed debug information

2024-05-02 Thread laanwj at protonmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=31692

--- Comment #3 from W. van der Laan  ---
i can confirm that the pushed commit solves the issue. That was so quick, thank
you!

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


[Bug binutils/31692] objdump fails .debug_info size check for compressed debug information

2024-05-02 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=31692

Alan Modra  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
   Assignee|unassigned at sourceware dot org   |amodra at gmail dot com
 Resolution|--- |FIXED

--- Comment #2 from Alan Modra  ---
Fixed

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


[Bug binutils/31692] objdump fails .debug_info size check for compressed debug information

2024-05-02 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=31692

--- Comment #1 from Sourceware Commits  ---
The master branch has been updated by Alan Modra :

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

commit 635d05b88f4823f46ef1ddbb3d438db16c0f6e71
Author: Alan Modra 
Date:   Thu May 2 19:02:48 2024 +0930

PR31692, objdump fails .debug_info size check

PR 31692
* objdump.c (load_specific_debug_section): Replace bfd_get_size
check with bfd_section_size_insane.  Call free_debug_section
after printing error messages.  Set section->start NULL when
freeing.

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


[Bug binutils/31692] objdump fails .debug_info size check for compressed debug information

2024-05-02 Thread sam at gentoo dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=31692

Sam James  changed:

   What|Removed |Added

   See Also||https://sourceware.org/bugz
   ||illa/show_bug.cgi?id=24319

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


[Bug binutils/31692] objdump fails .debug_info size check for compressed debug information

2024-05-02 Thread sam at gentoo dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=31692

Sam James  changed:

   What|Removed |Added

 CC||sam at gentoo dot org

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