get_line_filename_and_dirname
authorAlan Modra <amodra@gmail.com>
Sat, 15 May 2021 05:36:28 +0000 (15:06 +0930)
committerAlan Modra <amodra@gmail.com>
Sat, 15 May 2021 05:39:01 +0000 (15:09 +0930)
commit46d1214d887cdd2979fec2344cda1720abbbd33f
tree21481cb28334fad48ebabe585cbcb2eca50417c2
parentc03df92247333e5bf65bc663fab80fe7a87c0370
get_line_filename_and_dirname

* dwarf.c (get_line_filename_and_dirname): Delete initial_length_size.
Simplify length sanity check, and check for too small lengths.
Constrain data reads to header length.  Avoid pointer UB.
binutils/ChangeLog
binutils/dwarf.c