onekey-sec / unblob

Extract files from any kind of container formats
https://unblob.org
Other
2.19k stars 80 forks source link

fix(cpio): fixed checksum calculation to handle 4 byte overflows #674

Closed martonilles closed 12 months ago

martonilles commented 12 months ago

Checksum stored in the header is always 4 bytes in length, so when we calculate the checksum, we need to sure that we only consider the 4bytes part and ommit the overflown part.