Skip to content

Problem with wrong zip header error may be optional #94

Open

Description

@mkysoft

Some zip compress app making wrong header, for example zip4j. So SharpZipLib throwing "Size mismatch: " error at Zip\ZipInputStream.cs line 620.
// A csize of -1 is from an unpatched local header
if ((flags & 8) == 0 &&
(inf.TotalIn != csize && csize != 0xFFFFFFFF && csize != -1 || inf.TotalOut != size)) {
throw new ZipException("Size mismatch: " + csize + ";" + size + " <-> " + inf.TotalIn + ";" + inf.TotalOut);
}

Can we make bypass option for some errors in future versions?

Activity

  1. added
    enhancement
    on Apr 15, 2016
  2. self-assigned this
    on Apr 15, 2016
  3. modified the milestone: post 1.0 on Aug 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions