aboutsummaryrefslogtreecommitdiff
path: root/libctf
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2025-01-17 15:55:12 +1030
committerAlan Modra <amodra@gmail.com>2025-01-17 16:07:48 +1030
commitb565ac119bdf8ed857cfa1352ddc732ccdac7b66 (patch)
tree469d164821bde6fe865154617705f83f7407edf5 /libctf
parent7976c00c183f700e60031c67b3cc49875323c02e (diff)
downloadbinutils-b565ac119bdf8ed857cfa1352ddc732ccdac7b66.zip
binutils-b565ac119bdf8ed857cfa1352ddc732ccdac7b66.tar.gz
binutils-b565ac119bdf8ed857cfa1352ddc732ccdac7b66.tar.bz2
buffer overflow in score_elf_create_dynamic_relocation
score_elf_create_dynamic_relocation sets up three output dynamic relocs from rel[0], rel[1] and rel[2]. When rel[0] is the last reloc in a section this of course results in a buffer overflow. It's a weird thing to do given that only one relocation is output. * elf32-score.c (score_elf_create_dynamic_relocation): Do not set up three dynamic relocations when only one is output. * elf32-score7.c: Likewise.
Diffstat (limited to 'libctf')
0 files changed, 0 insertions, 0 deletions