diff options
author | Mark Harmstone <mark@harmstone.com> | 2023-07-17 13:25:05 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2023-07-17 13:25:05 +0100 |
commit | 502045ab152f04de74a5c47bbef5f2fac856b751 (patch) | |
tree | 39f4d174b653d51bfa8ecaad8072a7bc1ccba5d4 | |
parent | 80509af80c9b2f3a9d406bca3a17ef7f19e5121c (diff) | |
download | gdb-502045ab152f04de74a5c47bbef5f2fac856b751.zip gdb-502045ab152f04de74a5c47bbef5f2fac856b751.tar.gz gdb-502045ab152f04de74a5c47bbef5f2fac856b751.tar.bz2 |
ld/PDB: fix off-by-1 in add_globals_ref()
-rw-r--r-- | ld/pdb.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -880,7 +880,7 @@ add_globals_ref (struct globals *glob, bfd *sym_rec_stream, const char *name, g->offset = bfd_tell (sym_rec_stream); g->hash = hash; g->refcount = 1; - memcpy (g->data, data, len + 1); + memcpy (g->data, data, len); glob->num_entries++; |