PR28175, Segment fault in coff-tic30.c reloc_processing
authorAlan Modra <amodra@gmail.com>
Fri, 6 Aug 2021 11:18:41 +0000 (20:48 +0930)
committerAlan Modra <amodra@gmail.com>
Fri, 6 Aug 2021 13:36:53 +0000 (23:06 +0930)
commite039f7ed8675ddc9d2aa1e60df49dbc8d2836fc7
tree98fb52f3477dd3ea916e8a292d40212658ea3a9a
parenta379e7588c5e3a9750bba8c51218cce9225122f5
PR28175, Segment fault in coff-tic30.c reloc_processing

The obj_convert table shouldn't be accessed without first checking the
index against the table size.

PR 28175
* coff-tic30.c (reloc_processing): Sanity check reloc symbol index.
* coff-z80.c (reloc_processing): Likewise.
* coff-z8k.c (reloc_processing): Likewise.
bfd/coff-tic30.c
bfd/coff-z80.c
bfd/coff-z8k.c