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:
parent
64a3de5a7a
commit
cebd4392f2
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user