Skip to content

Commit 922267b

Browse files
committed
Add test sample where END header lies about number of entries and entry start count offset
1 parent a72eca7 commit 922267b

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

src/test/java/software/coley/lljzip/PartParseTests.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,8 @@ public void testConcatAndMerged(String name) {
110110

111111
@ParameterizedTest
112112
@ValueSource(strings = {
113+
"hello-end-declares-0-entries.jar",
114+
"hello-end-declares-0-entries-0-offset.jar",
113115
"hello-junk-dir-length.jar",
114116
"hello-junk-eocd.jar",
115117
"hello-junk-local-length.jar",

src/test/java/software/coley/lljzip/ZipComparisonShowcaseTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ public class ZipComparisonShowcaseTest {
3131
"hello.jar",
3232
"hello-concat.jar",
3333
"hello-concat-junkheader.jar",
34+
"hello-end-declares-0-entries.jar",
35+
"hello-end-declares-0-entries-0-offset.jar",
3436
"hello-junk-dir-length.jar",
3537
"hello-junk-eocd.jar",
3638
"hello-junk-local-length.jar",
493 Bytes
Binary file not shown.
493 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)