Fix an illegal memory access when copying a PE format file with corrupt debug informa...
authorNick Clifton <nickc@redhat.com>
Tue, 24 Apr 2018 15:31:27 +0000 (16:31 +0100)
committerNick Clifton <nickc@redhat.com>
Tue, 24 Apr 2018 15:32:12 +0000 (16:32 +0100)
commitaa4a8c2a2a67545e90c877162c53cc9de42dc8b4
tree199693d690fc4b0b404fe4ee221eb1cd7676f999
parent0a8ddac418d3e8e12a1bb51c3b0da90155f83403
Fix an illegal memory access when copying a PE format file with corrupt debug information.

PR 23110
* peXXigen.c (_bfd_XX_bfd_copy_private_bfd_data_common): Check for
a negative PE_DEBUG_DATA size before iterating over the debug data.
bfd/ChangeLog
bfd/peXXigen.c
bfd/po/bfd.pot