Fix illegal memory access bug in nm when run on a corrupt binary.
authorNick Clifton <nickc@redhat.com>
Mon, 13 Feb 2017 17:23:10 +0000 (17:23 +0000)
committerNick Clifton <nickc@redhat.com>
Mon, 13 Feb 2017 17:23:10 +0000 (17:23 +0000)
commitc12214021dedefcc2320827bcc1751f2d94ca2c6
tree1bf1e0e05a1bbd06db94f92790b6ae135ce7cceb
parent1835f746a7c7fff70a2cc03a051b14fdc6b3f73f
Fix illegal memory access bug in nm when run on a corrupt binary.

PR binutils/21150
* nm.c (file_symbol): Add test of string length before testing
string characters.
binutils/ChangeLog
binutils/nm.c