aboutsummaryrefslogtreecommitdiff
path: root/binutils/objcopy.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2020-03-05 09:42:41 +1030
committerAlan Modra <amodra@gmail.com>2020-03-05 11:15:55 +1030
commit6f8f95b4c4785e053f96b473039e244473a85ee5 (patch)
treef6c80cbe75bb317c3d13ac09e5d5359e2bd59327 /binutils/objcopy.c
parent8a7adb414e62495559f104bb9895df167d2298e1 (diff)
downloadbinutils-6f8f95b4c4785e053f96b473039e244473a85ee5.zip
binutils-6f8f95b4c4785e053f96b473039e244473a85ee5.tar.gz
binutils-6f8f95b4c4785e053f96b473039e244473a85ee5.tar.bz2
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.
Diffstat (limited to 'binutils/objcopy.c')
0 files changed, 0 insertions, 0 deletions