RFR: 8321802: (zipfs) Add validation of incorrect LOC signature in ZipFileSystem [v2]
Eirik Bjorsnos
duke at openjdk.org
Tue Dec 12 11:59:39 UTC 2023
On Tue, 12 Dec 2023 11:47:35 GMT, Lance Andersen <lancea at openjdk.org> wrote:
>> Eirik Bjorsnos has updated the pull request incrementally with one additional commit since the last revision:
>>
>> Use uppercase LOC in ZipException messages
>
> src/jdk.zipfs/share/classes/jdk/nio/zipfs/ZipFileSystem.java line 2579:
>
>> 2577: }
>> 2578: if (LOCSIG(buf) != LOCSIG) {
>> 2579: throw new ZipException("invalid loc header (bad signature)");
>
> Please change loc -> LOC
Fixed, including the ZipException for the preceding read check.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/17059#discussion_r1423888116
More information about the core-libs-dev
mailing list