diff options
author | Alan Modra <amodra@gmail.com> | 2023-04-18 10:22:08 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2023-04-18 10:24:41 +0930 |
commit | 341eba4f9d4f39c8bd08ff59120662e86a3de305 (patch) | |
tree | 264c0a4976f48d430a4255f3cb5722e23dc05683 | |
parent | 34d63622f677b577b927debb1d6fd2bfef4422bd (diff) | |
download | gdb-341eba4f9d4f39c8bd08ff59120662e86a3de305.zip gdb-341eba4f9d4f39c8bd08ff59120662e86a3de305.tar.gz gdb-341eba4f9d4f39c8bd08ff59120662e86a3de305.tar.bz2 |
objdump use of uninitialised value in pr_string_field
PR 30365
* rdcoff.c (parse_coff_struct_type): Leave bitsize zero when no
auxents.
-rw-r--r-- | binutils/rdcoff.c | 3 |
1 files changed, 2 insertions, 1 deletions
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: |