Don't segv on cie.initial_instructions[] overflow.
authorAlan Modra <amodra@gmail.com>
Fri, 20 Dec 2013 13:27:52 +0000 (23:57 +1030)
committerAlan Modra <amodra@gmail.com>
Fri, 20 Dec 2013 13:38:34 +0000 (00:08 +1030)
commit99d190fac4d2aab238cfc798dc5c28ab41456882
treee05cdd046418c9f609282c8997528d923d7caa10
parent21986715b1e238269e919f7d7c85b134a9e18b17
Don't segv on cie.initial_instructions[] overflow.

Don't attempt to merge CIEs with a larger number of insns than will
fit in the buffer.

* elf-eh-frame.c (cie_eq): Return false when initial_insn_length
is too large.
(cie_compute_hash): Don't exceed bounds of initial_instructions.
(_bfd_elf_parse_eh_frame): Always set initial_insn_length, and
save as much of insns to initial_instructions[] as will fit.
bfd/ChangeLog
bfd/elf-eh-frame.c