(zipfs) Align ZipFileSystem END header validation with the ZipFile implementation

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Unresolved
    • Priority: P4
    • None
    • Affects Version/s: None
    • Component/s: core-libs
    • None

      The ZipFileSystem initCEN method lacks two validation checks currently included in the corresponding ZipFile implementation:

      That the END header's CEN length does not exceed the JDK array implementation limit. See JDK-8272746.

      That the END header's total CEN entry count does not exceed the maximum number of CEN headers encodable within the CEN byte array. See JDK-8341625.

      These checks should be added to ZipFileSystem such that the valodation logic is aligned across implementation.

            Assignee:
            Eirik Bjørsnøs
            Reporter:
            Eirik Bjørsnøs
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: