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

Make sure ph.first_offset_found is set.

This commit is contained in:
Markus F.X.J. Oberhumer 2006-12-12 07:49:50 +01:00
parent 2e1795c5ba
commit f270213246

View File

@ -165,6 +165,10 @@ int upx_ucl_compress ( const upx_bytep src, unsigned src_len,
return UPX_E_ERROR;
}
// make sure first_offset_found is set
if (res[6] == 0)
res[6] = 1;
return convert_errno_from_ucl(r);
}