asan: Invalid free in alpha_ecoff_get_relocated_section_contents
authorAlan Modra <amodra@gmail.com>
Mon, 16 Oct 2023 09:04:03 +0000 (19:34 +1030)
committerAlan Modra <amodra@gmail.com>
Tue, 17 Oct 2023 04:47:25 +0000 (15:17 +1030)
commit84f24adc5ba65e7850d7a83e8839e305ef23c8d4
tree845ebd15b62c1be2d7a9e9ba349e28297e6e4a98
parentf46ff02f1812a157c6eb26a4b2edac2c2fbfb271
asan: Invalid free in alpha_ecoff_get_relocated_section_contents

This fixes an ancient bug in commit a3a33af390 (which makes me think
this code has never been used).

* coff-alpha.c (alpha_ecoff_get_relocated_section_contents): Iterate
through reloc_vector using a temp.
bfd/coff-alpha.c