New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ZipInputStream.GetNextEntry hangs permanently #300

Open
Metalnem opened this Issue Dec 25, 2018 · 1 comment

Comments

Projects
None yet
2 participants
@Metalnem
Copy link

Metalnem commented Dec 25, 2018

ZipInputStream.GetNextEntry hangs permanently when attempting to extract the attached archive. I'm using the latest SharpZipLib NuGet package (version 1.1.0). You can run the following code to reproduce it (the path variable should contain the path to the attached file):

using (var file = File.OpenRead(path))
using (var zip = new ZipInputStream(file))
{
  while (zip.GetNextEntry() != null) { }
}

Found via SharpFuzz.

@Numpsy

This comment has been minimized.

Copy link
Contributor

Numpsy commented Jan 20, 2019

Looks to be getting stuck @ https://github.com/icsharpcode/SharpZipLib/blob/master/src/ICSharpCode.SharpZipLib/Zip/ZipInputStream.cs#L372, where Read() constantly returns more data.

Possibly related to #128 / #88 / #19 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment