RFR: 8303866: Allow ZipInputStream.readEnd to parse small Zip64 ZIP files [v15]

Eirik Bjørsnøs eirbjo at openjdk.org
Tue Feb 13 16:30:19 UTC 2024


On Fri, 26 Jan 2024 20:49:57 GMT, Lance Andersen <lancea at openjdk.org> wrote:

>> To help make progress here, I have relaxed the validation such that we now check:
>> 
>> - That the "streaming mode" bit 3 flag is set
>> - That at least one of the LOC's size fields are marked 0xFFFFFFFF.
>> - That the LOC extra field has a field with header ID 0x1 (Zip64)
>> 
>> Any reading/validation of the contents of the Zip64 extra field has been removed.
>> 
>> @jaikiran Is this closer to what you'd like to see?
>
>> To help make progress here, I have relaxed the validation such that we now check:
>> 
>> * That the "streaming mode" bit 3 flag is set
>> * That at least one of the LOC's size fields are marked 0xFFFFFFFF.
>> * That the LOC extra field has a field with header ID 0x1 (Zip64)
>> 
>> Any reading/validation of the contents of the Zip64 extra field has been removed.
>> 
>> @jaikiran Is this closer to what you'd like to see?
> 
> Have not forgotten this, hope to get to it next week

Thanks @LanceAndersen, @jaikiran and @AlanBateman for your helpful and patient guidance.

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

PR Comment: https://git.openjdk.org/jdk/pull/12524#issuecomment-1941945147


More information about the core-libs-dev mailing list