Large memory allocation reading fuzzed 64-bit archive
authorAlan Modra <amodra@gmail.com>
Wed, 4 Mar 2020 23:12:41 +0000 (09:42 +1030)
committerAlan Modra <amodra@gmail.com>
Thu, 5 Mar 2020 00:45:55 +0000 (11:15 +1030)
commit6f8f95b4c4785e053f96b473039e244473a85ee5
treef6c80cbe75bb317c3d13ac09e5d5359e2bd59327
parent8a7adb414e62495559f104bb9895df167d2298e1
Large memory allocation reading fuzzed 64-bit archive

This patch adds a sanity check for the size of an armap.

* archive64.c (_bfd_archive_64_bit_slurp_armap): Check parsed_size
against file size before allocating memory.  Use bfd_alloc rather
than bfd_zalloc for carsym/strings memory.
bfd/ChangeLog
bfd/archive64.c
This page took 0.033797 seconds and 4 git commands to generate.