]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - ld/ChangeLog
ld: don't chance overrunning PE .reloc section content
authorJan Beulich <jbeulich@suse.com>
Mon, 15 Mar 2021 10:00:44 +0000 (11:00 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 15 Mar 2021 10:00:44 +0000 (11:00 +0100)
commitc68b1842bdb3cedce0cac7da43045c3788085a91
tree9f9e316d7621c53ca03359f1d53baca52f6d634e
parentba6a0ef34933712ec65855997e982bead3b314d4
ld: don't chance overrunning PE .reloc section content

The allocation of reloc_d doesn't take reloc_s->size into account. There
is already padding being emitted up to the allocated size. While
reloc_s->size ought to still be zero at this point anyway (and hence the
code being deleted would have been just dead), don't risk writing past
the actual allocation.
ld/ChangeLog
ld/pe-dll.c