]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
elfcopy: fix PE object section name corruption and crash
authorEd Maste <emaste@FreeBSD.org>
Tue, 27 Dec 2016 17:31:07 +0000 (17:31 +0000)
committerEd Maste <emaste@FreeBSD.org>
Tue, 27 Dec 2016 17:31:07 +0000 (17:31 +0000)
commitd0aa56451e41de257dee3a79a38945345b95d681
treedd2a77389534b44175e54900e38155abb58cbb50
parentdad99db2479456735d8e38ca7cd7bd40b1b23c03
elfcopy: fix PE object section name corruption and crash

Fixed a bug that the PE object section names are generated incorrectly
using the section name table found in the original input ELF object
instead of the intermediate ELF object.

Ticket: #541

Do not try to copy section content from a NULL d_buf when creating
uninitialized data COFF section for PE object.

Ticket: #540

Obtained from: ELF Tool Chain r3507, r3508
MFC after: 1 week
contrib/elftoolchain/elfcopy/pe.c