som.c buffer overflow
authorAlan Modra <amodra@gmail.com>
Wed, 26 Oct 2022 00:56:34 +0000 (11:26 +1030)
committerAlan Modra <amodra@gmail.com>
Wed, 26 Oct 2022 05:06:14 +0000 (15:36 +1030)
commit2f6ba62ed3825afa0d995e23d5bfe2fd8258bd00
tree344028d5f4d9f4abaf52203384b36f1468d230a8
parent6175be41757e886ce8ef5e792834aced3f5ae397
som.c buffer overflow

Fuzzed object files can put random values in bfd_reloc->address,
leading to large som_reloc_skip output.

* som.c (som_write_fixups): Allow for maximal som_reloc_skip.
bfd/som.c