On Tue, 1 Dec 2026 18:00:31 GMT, Lance Andersen <[email protected]> wrote:

>> Timofei Fedotov has updated the pull request incrementally with two 
>> additional commits since the last revision:
>> 
>>  - Convert ZIP64 regression test to JUnit
>>  - Validate ZIP64 directory fields in findEND
>
> test/jdk/java/util/zip/ZipFile/NegativeZip64CentralDirectorySize.java line 73:
> 
>> 71:         buffer.putInt(ZIP64_LOC_OFFSET + 16, 1);
>> 72:         buffer.putInt(END_OFFSET, 0x06054b50);
>> 73: 
> 
> For the offsets and fields above, it would be useful to leverage the fields 
> from open/src/java.base/share/classes/java/util/zip/ZipConstants64.java
> 
> I would copy what is used into the test making it easier to follow.

Done.

> test/jdk/java/util/zip/ZipFile/NegativeZip64CentralDirectorySize.java line 76:
> 
>> 74:         // Indicate that the central directory size is stored in ZIP64 
>> END.
>> 75:         buffer.putInt(END_OFFSET + 12, 0xffffffff);
>> 76: 
> 
> You can use ZIP64_MAGICVAL as a field name as seen in ZipConstants64.java

Done.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/34122#discussion_r4765213862
PR Review Comment: https://git.openjdk.org/jdk/pull/34122#discussion_r4765214385

Reply via email to