1
0
mirror of https://github.com/upx/upx synced 2025-09-28 19:06:07 +08:00

omit unfilter when .b_ftid==0

committer: jreiser <jreiser> 1042755704 +0000
This commit is contained in:
John Reiser 2003-01-16 22:21:44 +00:00
parent f92b617c43
commit 5eb81c0ec4

View File

@ -155,7 +155,7 @@ ERR_LAB
if (j != 0 || out_len != (nrv_uint)h.sz_unc)
err_exit(7);
// Skip Ehdr+Phdrs: separate 1st block, not filtered
if (f_unf // have filter
if (h.b_ftid!=0 && f_unf // have filter
&& ((512 < out_len) // this block is longer than Ehdr+Phdrs
|| (xo->size==(unsigned)h.sz_unc) ) // block is last in Extent
) {