Re: Fuzzed files in archives
authorAlan Modra <amodra@gmail.com>
Wed, 9 Nov 2022 06:07:42 +0000 (16:37 +1030)
committerAlan Modra <amodra@gmail.com>
Wed, 9 Nov 2022 07:01:41 +0000 (17:31 +1030)
commit2d4989e98ee5e63b76ce3e35b0e02baaee2f50cb
tree98730a35dbee4cae3b82f83999a0e86d46f13923
parenta8d181c0fdae61f788d0332e3d9c0cff4b80eaa5
Re: Fuzzed files in archives

Like commit ffbe89531c2e this avoids more silliness writing output
that is going to be deleted.  bfd_close and bfd_close_all_done differ
in that only the former calls _bfd_write_contents.

* objcopy.c (copy_archive): Don't call bfd_close for elements
that are going to be deleted, call bfd_close_all_done instead.
Do the same for the archive itself.
binutils/objcopy.c