mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-23 18:14:13 +08:00
Check for a NULL symbol pointer when reading relocs from a COFF based file.
PR 22509 * coffcode.h (coff_slurp_reloc_table): Check for a NULL symbol pointer when processing relocs.
This commit is contained in:
parent
f6f1d339d4
commit
4581a1c7d3
@ -1,3 +1,9 @@
|
|||||||
|
2017-11-29 Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
|
PR 22509
|
||||||
|
* coffcode.h (coff_slurp_reloc_table): Check for a NULL symbol
|
||||||
|
pointer when processing relocs.
|
||||||
|
|
||||||
2017-11-29 Stefan Stroe <stroestefan@gmail.com>
|
2017-11-29 Stefan Stroe <stroestefan@gmail.com>
|
||||||
|
|
||||||
* po/Make-in (datadir): Define as @datadir@.
|
* po/Make-in (datadir): Define as @datadir@.
|
||||||
|
@ -5335,7 +5335,7 @@ coff_slurp_reloc_table (bfd * abfd, sec_ptr asect, asymbol ** symbols)
|
|||||||
#else
|
#else
|
||||||
cache_ptr->address = dst.r_vaddr;
|
cache_ptr->address = dst.r_vaddr;
|
||||||
|
|
||||||
if (dst.r_symndx != -1)
|
if (dst.r_symndx != -1 && symbols != NULL)
|
||||||
{
|
{
|
||||||
if (dst.r_symndx < 0 || dst.r_symndx >= obj_conv_table_size (abfd))
|
if (dst.r_symndx < 0 || dst.r_symndx >= obj_conv_table_size (abfd))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user