public inbox for binutils-cvs@sourceware.org
 help / color / mirror / Atom feed
* [binutils-gdb] Fix: nm: SEGV at bfd/elf.c:2267 in _bfd_elf_get_dynamic_symbols
@ 2023-10-05 14:28 Nick Clifton
  0 siblings, 0 replies; only message in thread
From: Nick Clifton @ 2023-10-05 14:28 UTC (permalink / raw)
  To: bfd-cvs

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

commit 345309aadd64b701426fe3b4f4184ae689feef06
Author: Nick Clifton <nickc@redhat.com>
Date:   Thu Oct 5 15:27:47 2023 +0100

    Fix: nm: SEGV at bfd/elf.c:2267 in _bfd_elf_get_dynamic_symbols
    
      PR 30904
      * elf.c (_bfd_elf_get_dynamic_symbols): Fix typo when checking to see if the gnuchains array has been successfully created.

Diff:
---
 bfd/ChangeLog | 6 ++++++
 bfd/elf.c     | 2 +-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 851b47606c4..f44806fc34c 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,9 @@
+2023-10-05  Nick Clifton  <nickc@redhat.com>
+
+	PR 30904
+	* elf.c (_bfd_elf_get_dynamic_symbols): Fix typo when checking to
+	see if the gnuchains array has been successfully created.
+
 2023-10-02  Nick Clifton  <nickc@redhat.com>
 
 	* peXXigen.c (_bfd_XXi_only_swap_filehdr_out): Use
diff --git a/bfd/elf.c b/bfd/elf.c
index d5c570f4b8c..b5b0c69e097 100644
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -2227,7 +2227,7 @@ _bfd_elf_get_dynamic_symbols (bfd *abfd, Elf_Internal_Phdr *phdr,
 	goto error_return;
 
       gnuchains = get_hash_table_data (abfd, maxchain, 4, filesize);
-      if (gnubuckets == NULL)
+      if (gnuchains == NULL)
 	goto error_return;
       ngnuchains = maxchain;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-10-05 14:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-05 14:28 [binutils-gdb] Fix: nm: SEGV at bfd/elf.c:2267 in _bfd_elf_get_dynamic_symbols Nick Clifton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).