Fix checksum of non-compressible extents

https://github.com/upx/upx/issues/673
	modified:   src/p_unix.cpp
This commit is contained in:
John Reiser 2023-05-12 12:48:25 -07:00 committed by Markus F.X.J. Oberhumer
parent f571feee72
commit 279101d464

View File

@ -396,7 +396,7 @@ void PackUnix::packExtent(
ph.c_len = ph.u_len;
memcpy(obuf, ibuf, ph.c_len);
// must update checksum of compressed data
ph.c_adler = upx_adler32(ibuf, ph.u_len, ph.c_adler);
ph.c_adler = upx_adler32(ibuf, ph.u_len, init_c_adler);
}
// write block sizes