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

Fix checksum error de-compressing ELF with large .p_align and small blocksize

https://github.com/upx/upx/issues/836
	modified:   p_unix.cpp
This commit is contained in:
John Reiser 2024-07-05 19:06:14 -07:00 committed by Markus F.X.J. Oberhumer
parent 64a3de5a7a
commit cebd4392f2

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, init_c_adler);
ph.c_adler = upx_adler32(ibuf, ph.u_len, ph.c_adler);
}
// write block sizes