Fix seg-fault in DWARF dumper when given a corrupt binary containing illegal director...
authorNick Clifton <nickc@redhat.com>
Mon, 8 Aug 2016 08:34:32 +0000 (09:34 +0100)
committerNick Clifton <nickc@redhat.com>
Mon, 8 Aug 2016 08:34:32 +0000 (09:34 +0100)
commitdb9537d2b735300b129e2715012ae249ee015f58
tree7f70ed0274b797fd4ea8f4c92458ab7ae3d77ed8
parentf091cf02943c1ef8667742d28a8db82d0748f908
Fix seg-fault in DWARF dumper when given a corrupt binary containing illegal directory and file table indicies.

PR binutils/20439
* dwarf.c (display_debug_lines_decoded): Check directory and file
indicies before using them to access directory and file tables.
binutils/ChangeLog
binutils/dwarf.c