Repository navigation
Fix 7z wrong-password check and release signature check - #2
Merged
Merged
Conversation
…aller sevenz-rust2 verifies a CRC only after the declared size has been read. A wrong AES key can decode to a garbage stream that ends early, so Test reported success and Extract could write a truncated file. Every 7z entry must now decode to exactly its recorded size. Regression test: 3,000 wrong passwords (failed without the fix). The release signature check read target/.../maxrar.exe, which is not the copy that ships. It now unpacks the NSIS installer and verifies the installer, the maxrar.exe and maxrar_shell.dll inside it, and the menu DLL and package. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two problems found by the first signed v0.1.2 release run.
7z wrong password could pass Test (Linux failure).
sevenz-rust2checks a CRC only after the declared size is read. A wrong AES key can decode to a garbage stream that ends early, so Test reported success and Extract could write a truncated file. Every 7z entry must now decode to exactly its recorded size. New test tries 3,000 wrong passwords; it failed before the fix and passes after.Windows signature check read the wrong file. Signing succeeded for every file (Azure log: maxrar.exe, installer, NSIS plugins, menu DLL and package), but the check read
target/.../maxrar.exe, which reported NotSigned. It now unpacks the installer with 7-Zip and verifies the installer plus themaxrar.exeandmaxrar_shell.dllusers actually install.Checked locally: workspace tests, clippy
-D warnings, fmt; 7-Zip unpacking of an NSIS installer.After merge: move the unpublished
v0.1.2tag to the merge commit and rerun the signed release workflow.🤖 Generated with Claude Code