process_debug_info
authorAlan Modra <amodra@gmail.com>
Sat, 15 May 2021 05:09:11 +0000 (14:39 +0930)
committerAlan Modra <amodra@gmail.com>
Sat, 15 May 2021 05:18:33 +0000 (14:48 +0930)
commitedba4e4abaf679d3ce4d61fcbfe77b2bebfd4537
tree8d58116fd5731ecfa560c008dd57ff5274013a88
parentebb17864920d1b15f3c392ce5cd22ddee169e825
process_debug_info

This patch constrains process_debug_info to stay within the data
specified by the CU length rather than allowing access up to the end
of the section.

* dwarf.c (process_debug_info): Always do the first CU length
scan for sanity checks.  Remove initial_length_size var and
instead calculate end_cu.  Use end_cu to limit data reads.
Delete now dead code checking length.
binutils/ChangeLog
binutils/dwarf.c
This page took 0.030194 seconds and 4 git commands to generate.