Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Nov 11, 2023

Conversation

martonilles
Copy link
Contributor

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.

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.
@qkaiser qkaiser merged commit 81929c2 into main Nov 11, 2023
@qkaiser qkaiser deleted the cpio-checksum-fix branch November 11, 2023 12:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants