objdump use of uninitialised value in pr_string_field

PR 30365
	* rdcoff.c (parse_coff_struct_type): Leave bitsize zero when no
	auxents.
This commit is contained in:
Alan Modra
2023-04-18 10:22:08 +09:30
parent 34d63622f6
commit 341eba4f9d
+2 -1
View File
@@ -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: