diff options
author | Alan Modra <amodra@gmail.com> | 2025-01-17 15:55:12 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2025-01-17 16:07:48 +1030 |
commit | b565ac119bdf8ed857cfa1352ddc732ccdac7b66 (patch) | |
tree | 469d164821bde6fe865154617705f83f7407edf5 /libctf | |
parent | 7976c00c183f700e60031c67b3cc49875323c02e (diff) | |
download | binutils-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