* objdump use of uninitialised value in pr_string_field
@ 2023-04-18 1:25 Alan Modra
0 siblings, 0 replies; only message in thread
From: Alan Modra @ 2023-04-18 1:25 UTC (permalink / raw)
To: binutils
PR 30365
* rdcoff.c (parse_coff_struct_type): Leave bitsize zero when no
auxents.
diff --git a/binutils/rdcoff.c b/binutils/rdcoff.c
index 17e89e87d74..79fcfb21814 100644
--- a/binutils/rdcoff.c
+++ b/binutils/rdcoff.c
@@ -385,7 +385,8 @@ parse_coff_struct_type (bfd *abfd, struct coff_symbols *symbols,
case C_FIELD:
bitpos = bfd_asymbol_value (sym);
- bitsize = auxent.x_sym.x_misc.x_lnsz.x_size;
+ if (psubaux != NULL)
+ bitsize = psubaux->x_sym.x_misc.x_lnsz.x_size;
break;
case C_EOS:
--
Alan Modra
Australia Development Lab, IBM
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-04-18 1:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-18 1:25 objdump use of uninitialised value in pr_string_field Alan Modra
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).