macho-o archive sanity checks
authorAlan Modra <amodra@gmail.com>
Mon, 1 Nov 2021 08:25:19 +0000 (18:55 +1030)
committerAlan Modra <amodra@gmail.com>
Mon, 1 Nov 2021 12:00:33 +0000 (22:30 +1030)
commitc908dea26fb62df567bfd3761f762168ea7b0746
treec91bd1df4b3a833e4117476e8facefa34de8488d
parentc27cdb4c534e0b52ea877b6800f832756ee16a2f
macho-o archive sanity checks

Anti-fuzzing checks.

* mach-o.c (bfd_mach_o_fat_archive_p): Sanity check entry offset
and size against file size.
bfd/mach-o.c