Skip to content

Fix 7z encryption detection for streamless files - #1446

Merged
adamhathcock merged 1 commit into
releasefrom
fix/1438-sevenzip-encryption-detection
Oct 12, 2026
Merged

adamhathcock merged 1 commit into
releasefrom
fix/1438-sevenzip-encryption-detection

Conversation

@adamhathcock

Copy link
Copy Markdown
Owner

Summary

Validation

  • 99 SevenZip tests passed on net10.0.
  • Library builds passed for all six target frameworks with no warnings or errors.
  • CSharpier format/check and git diff --check passed.

Independent branch from release; no dependency on the other issue fixes.

Closes #1438

Copilot AI balanced review requested due to automatic review settings October 12, 2026 14:29

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The implementation correctly addresses the reported edge cases with focused regression coverage.

0 open findings

What changed in this PR

Fixes 7z encryption detection for streamless entries and archive-wide metadata.

Changes:

  • Treat streamless files and directories as unencrypted.
  • Check all archive entries and safely handle archives without files.
  • Add regression tests and document the semantics.
File Description
SevenZipFilePart.cs Safely checks folder encryption.
SevenZipArchive.cs Detects encryption across all entries.
SevenZipEncryptionDetectionTests.cs Covers empty-first and fileless archives.
docs/​API.md Documents 7z encryption detection.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@adamhathcock
adamhathcock merged commit 3b57f53 into release Oct 12, 2026
4 checks passed
@adamhathcock
adamhathcock deleted the fix/1438-sevenzip-encryption-detection branch October 12, 2026 15:00
This was referenced Oct 19, 2026
This was referenced Nov 16, 2026
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