Set .b_extra for hdr, especially for Mach-o for 'go'.

https://github.com/upx/upx/issues/222
	modified:   p_unix.cpp
This commit is contained in:
John Reiser 2020-06-06 17:11:32 -07:00 committed by Markus F.X.J. Oberhumer
parent d7c416f243
commit 972b670a64

View File

@ -409,6 +409,7 @@ void PackUnix::packExtent(
set_te32(&tmp.sz_unc, hdr_u_len);
set_te32(&tmp.sz_cpr, hdr_c_len);
tmp.b_method = (unsigned char) ph.method;
tmp.b_extra = b_extra;
fo->write(&tmp, sizeof(tmp));
b_len += sizeof(b_info);
fo->write(hdr_obuf, hdr_c_len);