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:
parent
2e1795c5ba
commit
f270213246
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user