Fix checksum of non-compressible extents
https://github.com/upx/upx/issues/673 modified: src/p_unix.cpp
This commit is contained in:
parent
f571feee72
commit
279101d464
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user