PR25070, SEGV in function _bfd_dwarf2_find_nearest_line
authorAlan Modra <amodra@gmail.com>
Wed, 9 Oct 2019 00:17:13 +0000 (10:47 +1030)
committerAlan Modra <amodra@gmail.com>
Wed, 9 Oct 2019 02:58:20 +0000 (13:28 +1030)
commit336bfbeb1848f4b9558456fdcf283ee8a32d7fd1
tree5b58fe6559be5012ef7897a2cc5a4f2bfa9dd81b
parent41481f9e4e4bd48e533f5731b6abc2730a3d7d81
PR25070, SEGV in function _bfd_dwarf2_find_nearest_line

Evil testcase with two debug info sections, with sizes of 2aaaabac4ec1
and ffffd5555453b140 result in a total size of 1.  Reading the first
section of course overflows the buffer and tramples on other memory.

PR 25070
* dwarf2.c (_bfd_dwarf2_slurp_debug_info): Catch overflow of
total_size calculation.
bfd/ChangeLog
bfd/dwarf2.c
This page took 0.02848 seconds and 4 git commands to generate.