summaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2023-04-18 10:22:08 +0930
committerAlan Modra <amodra@gmail.com>2023-04-18 10:24:41 +0930
commit341eba4f9d4f39c8bd08ff59120662e86a3de305 (patch)
tree264c0a4976f48d430a4255f3cb5722e23dc05683 /binutils
parent34d63622f677b577b927debb1d6fd2bfef4422bd (diff)
downloadbinutils-gdb-341eba4f9d4f39c8bd08ff59120662e86a3de305.tar.gz
objdump use of uninitialised value in pr_string_field
PR 30365 * rdcoff.c (parse_coff_struct_type): Leave bitsize zero when no auxents.
Diffstat (limited to 'binutils')
-rw-r--r--binutils/rdcoff.c3
1 files changed, 2 insertions, 1 deletions
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: