Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

.z file decompress throw exception, header byte 0x1f, 0x9d, 0x90,0x23, winrar and 7z tools open success.

Open
#901 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
32/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
csharp
Domain
tooling

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

*no response* bug
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from icsharpcode/SharpZipLib

All issues in icsharpcode/SharpZipLib

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.