Created attachment 10442 [details]
On master compiled today.
# nm -V
GNU nm (Gentoo git) 188.8.131.5270921
Command to reproduce:
# nm -A -a -l -S -s --special-syms --synthetic --with-symbol-versions -D $FILE
Created attachment 10443 [details]
*** Bug 22171 has been marked as a duplicate of this bug. ***
The master branch has been updated by Alan Modra <firstname.lastname@example.org>:
Author: Alan Modra <email@example.com>
Date: Sun Sep 24 14:36:16 2017 +0930
PR22169, heap-based buffer overflow in read_1_byte
The .debug_line header length field doesn't include the length field
itself, ie. it's the size of the rest of .debug_line.
* dwarf2.c (decode_line_info): Correct .debug_line unit_length check.