Fix checksum of non-compressible extents
https://github.com/upx/upx/issues/673 modified: src/p_unix.cpp
This commit is contained in:
committed by
Markus F.X.J. Oberhumer
parent
f571feee72
commit
279101d464
+1
-1
@@ -396,7 +396,7 @@ void PackUnix::packExtent(
|
|||||||
ph.c_len = ph.u_len;
|
ph.c_len = ph.u_len;
|
||||||
memcpy(obuf, ibuf, ph.c_len);
|
memcpy(obuf, ibuf, ph.c_len);
|
||||||
// must update checksum of compressed data
|
// 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
|
// write block sizes
|
||||||
|
|||||||
Reference in New Issue
Block a user