Fix seg-fault attempting to strip a corrupt binary.
authorNick Clifton <nickc@redhat.com>
Mon, 5 Dec 2016 13:35:50 +0000 (13:35 +0000)
committerNick Clifton <nickc@redhat.com>
Mon, 5 Dec 2016 13:35:50 +0000 (13:35 +0000)
commita55c9876bb111fd301b4762cf501de0040b8f9db
tree70885a7047dbd05d57638c0a2f7462f3b6ef044a
parent88add6d8e794073758b5398c52bbb76ab40a2923
Fix seg-fault attempting to strip a corrupt binary.

PR binutils/20922
* elf.c (find_link): Check for null headers before attempting to
match them.
bfd/ChangeLog
bfd/elf.c