Fix seg-fault in strip when copying a corrupt binary.
authorNick Clifton <nickc@redhat.com>
Tue, 6 Dec 2016 16:53:57 +0000 (16:53 +0000)
committerNick Clifton <nickc@redhat.com>
Tue, 6 Dec 2016 16:53:57 +0000 (16:53 +0000)
commit4f3ca05b487e9755018b4c9a053a2e6c35d8a7df
treee959ef5fd42c27c1269f2fd67ed6069f546a856c
parent8b929e420a810afe23d5ba57a98109c74d1d5816
Fix seg-fault in strip when copying a corrupt binary.

PR binutils/20931
* elf.c (copy_special_section_fields): Check for an invalid
sh_link field before attempting to follow it.
bfd/ChangeLog
bfd/elf.c