diff options
author | Alan Modra <amodra@gmail.com> | 2021-05-11 21:30:14 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2021-05-11 21:38:39 +0930 |
commit | 8ca5537ba56b72518353541784b2b0a49c978893 (patch) | |
tree | bf0de95918f8ea8469f659606925e11d165c0172 /bfd/pdp11.c | |
parent | a680affc635af50db5b0cb8e389b54b057691ec4 (diff) | |
download | gdb-8ca5537ba56b72518353541784b2b0a49c978893.zip gdb-8ca5537ba56b72518353541784b2b0a49c978893.tar.gz gdb-8ca5537ba56b72518353541784b2b0a49c978893.tar.bz2 |
PR27844, Unstable symbol name in objdump outputs
Special care for fuzzers.
PR 27844
* pdp11.c (aout_get_external_symbols): Clear first four bytes of
strings array, not just the first byte.
* aoutx.h (aout_get_external_symbols): Likewise.
Diffstat (limited to 'bfd/pdp11.c')
-rw-r--r-- | bfd/pdp11.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/pdp11.c b/bfd/pdp11.c index 75ddf20..2c9fe0a 100644 --- a/bfd/pdp11.c +++ b/bfd/pdp11.c @@ -1344,7 +1344,7 @@ aout_get_external_symbols (bfd *abfd) } } /* Ensure that a zero index yields an empty string. */ - strings[0] = '\0'; + memset (strings, 0, BYTES_IN_LONG); /* Ensure that the string buffer is NUL terminated. */ strings[stringsize] = 0; |