Skip to content

Commit

Permalink
Added a workaround for a very unpleasant bug in ZIP4J 2.9.1 and 2.10.…
Browse files Browse the repository at this point in the history
  • Loading branch information
aunkrig committed Jun 14, 2022
1 parent 52b25e4 commit 9462ce9
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,16 @@ private ZipArchiveFormat() {}
AbstractFileHeader afh = zis.getNextEntry();
if (afh == null) return null;




// Workaround for a very unpleasant bug in ZIP4J 2.9.1 and 2.10.0, see
// https://github.com/srikanth-lingala/zip4j/issues/438:
if (afh.isDirectory()) zis.read(new byte[1]);




return ZipArchiveFormat.zipArchiveEntry(afh);
}

Expand Down

0 comments on commit 9462ce9

Please sign in to comment.