Skip to content

Problem with wrong zip header error may be optional #94

@mkysoft

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementFeature request or other improvements of existing functionality

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions