Async entry read causes exception when reading AES encrypted zip.
@piksel がすでに取り組んでいます。
2023年4月10日 から。
評価
この issue はまだ評価されていません。
説明
Describe the bug
When trying to read an encrypted archive's entry's input stream asynchronously, it reports an exception containing message: "Auth code missing from input stream".
Yet, if the same archive is read synchronously it works fine.
Reproduction Code
https://dotnetfiddle.net/RhJM7o
Steps to reproduce
It doesn't seem to happen for every input. But for inputs where it does happen, changing the async call to the synchronous version fixes the problem.
The zip input is in the dotnetfiddle.
The steps to create the zip archive from 7-Zip are:
- Using the file provided (appendix A)
- 7-Zip -> Add to archive
- Ensure params:
- Archive Format: Zip
- Compression level: 5 - Normal
- Compression method: * Deflate
- Encryption method: AES-256
- Set password (I set mine to "test")
- Run the decompress/decrypt steps outlined in the dotnetfiddle
Expected behavior
For the same input, I expected them both to work (the synchronous and the asynchronous).
Operating System
Windows
Framework Version
.NET 6
Tags
ZIP, Encryption, Async
Additional context
No response
- 主要言語
- C#
- スター
- 3.9k
- フォーク
- 1k
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
icsharpcode/SharpZipLib のほかの issue
-
*no response* bug
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
icsharpcode/SharpZipLib#905 · コメント 1 件 ·
-
bug bzip2
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
icsharpcode/SharpZipLib#904 ·
-
SetLevel in ZipFile オープンenhancement zip
難易度 2/5 1〜2日 初心者へのやさしさ 55/100
icsharpcode/SharpZipLib#903 ·
-
*no response* bug
難易度 4/5 3〜5日 初心者へのやさしさ 32/100
icsharpcode/SharpZipLib#901 · コメント 1 件 ·
-
*no response* bug
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
icsharpcode/SharpZipLib#894 · コメント 1 件 ·
icsharpcode/SharpZipLib の issue をすべて見る
似ている issue
-
core dependencies
難易度 1/5 1時間未満 初心者へのやさしさ 80/100
-
bug frontend good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
NavigationViewItemAutomationPeer implements IInvokeProvider but never advertises the Invoke pattern オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
unoplatform/uno#24629 ·
-
agentic-workflows Needs: Triage :mag: State: In-PR
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
Down / Waiting for removal
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100