]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
buffer overflow in nds32_elf_lo12_reloc
authorAlan Modra <amodra@gmail.com>
Tue, 26 May 2026 08:36:30 +0000 (18:06 +0930)
committerAlan Modra <amodra@gmail.com>
Tue, 26 May 2026 08:36:30 +0000 (18:06 +0930)
commita8740b7533b4df34d4d7bc5be9bb2108d019fce5
tree235578ec81d9108f151fd0bb994bcd5316660d05
parent3ec37a1948196800af10018b8b11b9da4abc886d
buffer overflow in nds32_elf_lo12_reloc

nds32_elf_lo12_reloc reads the lo reloc word when processing stashed
hi relocs.

* elf32-nds32.c: Replace bfd_octets_per_byte with OCTETS_PER_BYTE
throughout file.
(nds32_elf_lo12_reloc): Sanity check reloc offset.
bfd/elf32-nds32.c