.z file decompress throw exception, header byte 0x1f, 0x9d, 0x90,0x23, winrar and 7z tools open success.
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 32/100
Research direction
Start by reproducing the failure with the linked features_1f9d.z file and the shown FileStream/LzwInputStream read loop. Inspect LzwInputStream to determine why the 0x1f, 0x9d, 0x90, 0x23 header produces corrupt input; the issue does not name a source file or test, and the expected behavior is unspecified.
Written by the indexing model from the issue text.
Description
Describe the bug
use LzwInputStream decompree a .z file failed,header byte 0x1f, 0x9d, 0x90,0x23, bug winrar and 7z tools decompress success.
ICSharpCode.SharpZipLib.Lzw.LzwException:“corrupt input: code=52133, freeEnt=50090”
https://github.com/HenryHo2006/NewNNI/releases/download/Release/features_1f9d.z
Reproduction Code
No response
Steps to reproduce
using FileStream fs = File.OpenRead(@"D:\features_1f9d.z");
using LzwInputStream lzw = new LzwInputStream(fs);
MemoryStream dec_ms = new MemoryStream();
byte[] buf = new byte[4096];
int read;
while ((read = lzw.Read(buf, 0, buf.Length)) > 0)
{
dec_ms.Write(buf, 0, read);
}
Expected behavior
ignore
Operating System
No response
Framework Version
No response
Tags
No response
Additional context
No response
- Dominant language
- C#
- Stars
- 3.9k
- Forks
- 1k
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from icsharpcode/SharpZipLib
-
*no response* bug
Difficulty 1/5 Under an hour Newbie friendliness 78/100
icsharpcode/SharpZipLib#905 · 1 comment ·
-
bug bzip2
Difficulty 4/5 3-5 days Newbie friendliness 45/100
icsharpcode/SharpZipLib#904 ·
-
SetLevel in ZipFile Openenhancement zip
Difficulty 2/5 1-2 days Newbie friendliness 55/100
icsharpcode/SharpZipLib#903 ·
-
*no response* bug
Difficulty 4/5 3-5 days Newbie friendliness 35/100
icsharpcode/SharpZipLib#894 · 1 comment ·
-
*no response* enhancement
Difficulty 5/5 Over a week Newbie friendliness 35/100
icsharpcode/SharpZipLib#893 ·
All issues in icsharpcode/SharpZipLib
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
nightscout/nocturne#1425 ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
Documentation
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
cake-build/cake#5024 ·
-
Frontend status/draft TechnicalDebt
Difficulty 2/5 1-2 days Newbie friendliness 75/100
Altinn/altinn-auth#4143 ·