Skip to content

Commit

Permalink
Update sdk/src/main/java/io/opentdf/platform/sdk/ZipReader.java
Browse files Browse the repository at this point in the history
Co-authored-by: Mikhail Ustiantsev <[email protected]>
  • Loading branch information
mkleene and mustyantsev authored May 20, 2024
1 parent 7c39f2a commit 83ba1c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdk/src/main/java/io/opentdf/platform/sdk/ZipReader.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 83ba1c5

Please sign in to comment.