Skip to content

Commit 1b862e3

Browse files
committed
Fix bug when reading files with JvmZipReaderStrategy
1 parent c5726c1 commit 1b862e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/software/coley/llzip/format/model/JvmLocalFileHeader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public void read(ByteData data, long offset) {
4444
// Valid data range found, map back to (localOffset, range)
4545
fileData = readLongSlice(data,
4646
new LazyLong(() -> dataOffsetStart - offset),
47-
new LazyLong(() -> dataOffsetEnd - offset));
47+
new LazyLong(() -> dataOffsetEnd - dataOffsetStart));
4848
foundData = true;
4949
} else {
5050
// Keep data reference to attempt restoration with later when linking to the CEN.

0 commit comments

Comments
 (0)