Fix a memory access violation triggeed by a fuzzed binary.
authorNick Clifton <nickc@redhat.com>
Tue, 16 Dec 2014 14:17:15 +0000 (14:17 +0000)
committerNick Clifton <nickc@redhat.com>
Tue, 16 Dec 2014 14:17:15 +0000 (14:17 +0000)
commit033539e2685156ad6ad60e5925bc61cef5ced483
treeacdba5d5519157286fb6d5767b9690032f84f5e3
parentbeed38b8273fa18be574a7e84d5d2ee1f563ed48
Fix a memory access violation triggeed by a fuzzed binary.

PR binutils/17512
* format.c (bfd_check_format_matches): Check for a matching vector
before using match priorities.
* mach-o.c (bfd_mach_o_canonicalize_one_reloc): Fix off-by-one
errors with previous delta.
bfd/ChangeLog
bfd/format.c
bfd/mach-o.c