Integrated: 8321802: (zipfs) Add validation of incorrect LOC signature in ZipFileSystem

Eirik Bjørsnøs eirbjo at openjdk.org
Fri Dec 22 16:11:53 UTC 2023


On Mon, 11 Dec 2023 15:38:28 GMT, Eirik Bjørsnøs <eirbjo at openjdk.org> wrote:

> Please review this PR which adds validation of incorrect LOC signatures in `ZipFileSystem`.
> 
> `ZipFile` already rejects the case where the  offset pointed to from the CEN header does not start with the expected LOC signature. It makes sense to add this check to `ZipFileSystem` as well.

This pull request has now been integrated.

Changeset: 93fedc12
Author:    Eirik Bjørsnøs <eirbjo at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/93fedc12db95d1e61c17537652cac3d4e27ddf2c
Stats:     15 lines in 2 files changed: 13 ins; 0 del; 2 mod

8321802: (zipfs) Add validation of incorrect LOC signature in ZipFileSystem

Reviewed-by: alanb, lancea

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

PR: https://git.openjdk.org/jdk/pull/17059


More information about the core-libs-dev mailing list