* [binutils-gdb/binutils-2_41-branch] ld/PDB: fix off-by-1 in add_globals_ref()
@ 2023-07-17 12:25 Nick Clifton
0 siblings, 0 replies; only message in thread
From: Nick Clifton @ 2023-07-17 12:25 UTC (permalink / raw)
To: bfd-cvs
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=502045ab152f04de74a5c47bbef5f2fac856b751
commit 502045ab152f04de74a5c47bbef5f2fac856b751
Author: Mark Harmstone <mark@harmstone.com>
Date: Mon Jul 17 13:25:05 2023 +0100
ld/PDB: fix off-by-1 in add_globals_ref()
Diff:
---
ld/pdb.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ld/pdb.c b/ld/pdb.c
index 5e85f999c6b..267da50c4a7 100644
--- a/ld/pdb.c
+++ b/ld/pdb.c
@@ -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++;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-07-17 12:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-17 12:25 [binutils-gdb/binutils-2_41-branch] ld/PDB: fix off-by-1 in add_globals_ref() Nick Clifton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).