From 341eba4f9d4f39c8bd08ff59120662e86a3de305 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Tue, 18 Apr 2023 10:22:08 +0930 Subject: objdump use of uninitialised value in pr_string_field PR 30365 * rdcoff.c (parse_coff_struct_type): Leave bitsize zero when no auxents. --- binutils/rdcoff.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'binutils') diff --git a/binutils/rdcoff.c b/binutils/rdcoff.c index 17e89e8..79fcfb2 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: -- cgit v1.1