ld/PDB: fix off-by-1 in add_globals_ref()
authorJan Beulich <jbeulich@suse.com>
Tue, 11 Jul 2023 06:14:57 +0000 (08:14 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 11 Jul 2023 06:14:57 +0000 (08:14 +0200)
commiteb70d820e85d1a10c3838088c4b551eef01efa61
tree6d16bbff6a54a248f0267414509a449c967c69d2
parentc4fb288bbbe28b67534094365ada28f5de85e3ae
ld/PDB: fix off-by-1 in add_globals_ref()

Copying one too many bytes can corrupt memory, detected/reported by
glibc on a 32-bit distro.
ld/pdb.c