Skip to content

Commit 39bab11

Browse files
committed
Support large Zip files for JVM/64-bit
The changes are to remove the 4GB size limit of Zip files and support LARGE FILE for JVM/64-bit. This PR doesn't support LARGE FILE for JVM/32-bit. Fixes: #23441
1 parent 459e84d commit 39bab11

File tree

3 files changed

+133
-98
lines changed

3 files changed

+133
-98
lines changed

runtime/include/vmizip.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@ typedef struct VMIZipEntry
6767
U_8 *filename;
6868
U_8 *extraField;
6969
U_8 *fileComment;
70-
I_32 dataPointer;
71-
I_32 filenamePointer;
72-
I_32 extraFieldPointer;
73-
I_32 fileCommentPointer;
70+
I_64 dataPointer;
71+
I_64 filenamePointer;
72+
I_64 extraFieldPointer;
73+
I_64 fileCommentPointer;
7474
U_32 compressedSize;
7575
U_32 uncompressedSize;
7676
U_32 crc32;

runtime/include/zipsup.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,10 +107,10 @@ typedef struct J9ZipEntry {
107107
U_8* filename;
108108
U_8* extraField;
109109
U_8* fileComment;
110-
U_32 dataPointer;
111-
U_32 filenamePointer;
112-
U_32 extraFieldPointer;
113-
I_32 fileCommentPointer;
110+
I_64 dataPointer;
111+
I_64 filenamePointer;
112+
I_64 extraFieldPointer;
113+
I_64 fileCommentPointer;
114114
U_32 compressedSize;
115115
U_32 uncompressedSize;
116116
U_32 crc32;

0 commit comments

Comments
 (0)