From 83ba1c5f9a6b2b31f3f0fb7e3225720944d4e687 Mon Sep 17 00:00:00 2001 From: Morgan Kleene Date: Mon, 20 May 2024 12:35:09 -0400 Subject: [PATCH] Update sdk/src/main/java/io/opentdf/platform/sdk/ZipReader.java Co-authored-by: Mikhail Ustiantsev <39340048+mustyantsev@users.noreply.github.com> --- sdk/src/main/java/io/opentdf/platform/sdk/ZipReader.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/src/main/java/io/opentdf/platform/sdk/ZipReader.java b/sdk/src/main/java/io/opentdf/platform/sdk/ZipReader.java index e565e31d..cc9d8d1e 100644 --- a/sdk/src/main/java/io/opentdf/platform/sdk/ZipReader.java +++ b/sdk/src/main/java/io/opentdf/platform/sdk/ZipReader.java @@ -69,7 +69,7 @@ public CentralDirectoryRecord(long numEntries, long offsetToStart) { private static final int ZIP64_EXTID= 0x0001; CentralDirectoryRecord readEndOfCentralDirectory() throws IOException { - long eoCDRStart = zipChannel.size() - 22; // 22 is the minimum size of the EOCDR + long eoCDRStart = zipChannel.size() - END_OF_CENTRAL_DIRECTORY_SIZE; // 22 is the minimum size of the EOCDR while (eoCDRStart >= 0) { zipChannel.position(eoCDRStart);