]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - binutils/ChangeLog
asan: readelf: heap buffer overflow in slurp_hppa_unwind_table
authorAlan Modra <amodra@gmail.com>
Thu, 9 Jul 2020 03:48:37 +0000 (13:18 +0930)
committerAlan Modra <amodra@gmail.com>
Thu, 9 Jul 2020 04:20:27 +0000 (13:50 +0930)
commite3fdc001d359d6bcd033c1276c772e72d3f49078
tree4d5ba4ad06767ad74b0f7f8926e8ab169f1703f7
parenta6978338d92a3281c8c45da1a3ef7b4d5f7346e7
asan: readelf: heap buffer overflow in slurp_hppa_unwind_table

This one isn't just a weird corner case requiring multiple
.PARISC.unwind sections in an object file to trigger the buffer
overflow, it's also a simple bug that would prevent relocations being
applied in the normal case of a single .PARISC.unwind section.

* readelf (slurp_hppa_unwind_table): Set table_len before use
in relocation sanity checks.
binutils/ChangeLog
binutils/readelf.c