Browse Source

objdump use of uninitialised value in pr_string_field

PR 30365
	* rdcoff.c (parse_coff_struct_type): Leave bitsize zero when no
	auxents.
users/aburgess/try-core-file-pid0
Alan Modra 3 years ago
parent
commit
341eba4f9d
  1. 3
      binutils/rdcoff.c

3
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:

Loading…
Cancel
Save