read_debug_line_header
authorAlan Modra <amodra@gmail.com>
Sat, 15 May 2021 05:18:48 +0000 (14:48 +0930)
committerAlan Modra <amodra@gmail.com>
Sat, 15 May 2021 05:24:05 +0000 (14:54 +0930)
commit37195e23e731744d2d61c97844e884634b592f77
tree82de8ba02e9cf68c9be4cab1a00d70e043d16d66
parentedba4e4abaf679d3ce4d61fcbfe77b2bebfd4537
read_debug_line_header

This patch also better constrains the data read, and removes pointer UB.

* dwarf.c (read_debug_line_header): Delete initial_length_size.
Avoid pointer UB.  Keep within length specified by header.
Delete dead code.
binutils/ChangeLog
binutils/dwarf.c