objcopy fuzzed pe out of memory
authorAlan Modra <amodra@gmail.com>
Wed, 4 Jan 2023 12:30:12 +0000 (23:00 +1030)
committerAlan Modra <amodra@gmail.com>
Wed, 4 Jan 2023 13:22:26 +0000 (23:52 +1030)
commitfa19218f8b4ec6bc2d7da6b20dce5f2cd22072bd
tree8e7bd5c56240b9bf4cea27ebed1701b44ec40b5a
parent3bba9d93294a8172018731477df72c1c3ef42136
objcopy fuzzed pe out of memory

This occurs when attempting to read back a section from the output
file in _bfd_XX_bfd_copy_private_bfd_data_common.  The copy of the
section failed size sanity checking, thus it won't be written.

* objcopy.c (copy_object): Return false if copy_section or
copy_relocations_in_section fails.
binutils/objcopy.c