[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/22509] Null pointer dereference on coff_slurp_reloc_table
From: |
cvs-commit at gcc dot gnu.org |
Subject: |
[Bug binutils/22509] Null pointer dereference on coff_slurp_reloc_table |
Date: |
Wed, 23 Nov 2022 12:29:45 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=22509
--- Comment #3 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot
gnu.org> ---
The master branch has been updated by Alan Modra <amodra@sourceware.org>:
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=e6b6fad2fe4d180bcd65a1e0aabc6ba763901346
commit e6b6fad2fe4d180bcd65a1e0aabc6ba763901346
Author: Alan Modra <amodra@gmail.com>
Date: Wed Nov 23 22:12:30 2022 +1030
PR22509 - Null pointer dereference on coff_slurp_reloc_table
This extends the commit 4581a1c7d304 fix to more targets, which
hardens BFD a little. I think the real underlying problem was the
bfd_canonicalize_reloc call in load_specific_debug_section which
passed a NULL for "symbols". Fix that too.
PR 22509
bfd/
* aoutx.h (swap_ext_reloc_out): Gracefully handle NULL symbols.
* i386lynx.c (swap_ext_reloc_out): Likewise.
* pdp11.c (pdp11_aout_swap_reloc_out): Likewise.
* coff-tic30.c (reloc_processing): Likewise.
* coff-tic4x.c (tic4x_reloc_processing): Likewise.
* coff-tic54x.c (tic54x_reloc_processing): Likewise.
* coff-z80.c (reloc_processing): Likewise.
* coff-z8k.c (reloc_processing): Likewise.
* ecoff.c (ecoff_slurp_reloc_table): Likewise.
* som.c (som_set_reloc_info): Likewise.
binutils/
* objdump.c (load_specific_debug_section): Pass syms to
bfd_canonicalize_reloc.
--
You are receiving this mail because:
You are on the CC list for the bug.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug binutils/22509] Null pointer dereference on coff_slurp_reloc_table,
cvs-commit at gcc dot gnu.org <=