]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
asan: use after free in _bfd_elf_mips_get_relocated_section_contents
authorAlan Modra <amodra@gmail.com>
Fri, 17 Dec 2021 04:31:20 +0000 (15:01 +1030)
committerAlan Modra <amodra@gmail.com>
Fri, 17 Dec 2021 05:31:34 +0000 (16:01 +1030)
commit7ebf6ed02bde3a488bb588316e47b4df68796076
treedb04fb527931fea3b7aada7a43443d8dabdb3056
parentcfabce5ba10ea15158c78bdac732425a46057e42
asan: use after free in _bfd_elf_mips_get_relocated_section_contents

Leaving entries on mips_hi16_list from a previous pass over relocs
leads to confusing bugs.

* elfxx-mips.c (_bfd_elf_mips_get_relocated_section_contents):
Free mips_hi16_list entries on error exit.
bfd/elfxx-mips.c