From: Alan Modra Date: Tue, 18 Apr 2023 00:52:08 +0000 (+0930) Subject: objdump use of uninitialised value in pr_string_field X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=341eba4f9d4f39c8bd08ff59120662e86a3de305;p=binutils-gdb.git objdump use of uninitialised value in pr_string_field 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: