Skip to content

Fix 7z wrong-password check and release signature check - #2

Merged
riponcm merged 1 commit into
mainfrom
fix/release-checks
Oct 31, 2026
Merged

riponcm merged 1 commit into
mainfrom
fix/release-checks

Conversation

@riponcm

@riponcm riponcm commented Oct 31, 2026

Copy link
Copy Markdown
Contributor

Two problems found by the first signed v0.1.2 release run.

7z wrong password could pass Test (Linux failure). sevenz-rust2 checks 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 the maxrar.exe and maxrar_shell.dll users actually install.

Checked locally: workspace tests, clippy -D warnings, fmt; 7-Zip unpacking of an NSIS installer.

After merge: move the unpublished v0.1.2 tag to the merge commit and rerun the signed release workflow.

🤖 Generated with Claude Code

…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>
@riponcm
riponcm merged commit 6a0ae53 into main Oct 31, 2026
8 checks passed
@riponcm
riponcm deleted the fix/release-checks branch November 1, 2026 06:25
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.

1 participant