RFR: 8251329: (zipfs) Files.walkFileTree walks infinitely if zip has dir named "." inside
Lance Andersen
lancea at openjdk.java.net
Sun Jul 25 22:04:40 UTC 2021
Hi,
As discussed in the https://mail.openjdk.java.net/pipermail/core-libs-dev/2021-July/079621.html thread, this is the revised patch to address the use of '.' and '..' within Zip FS
Zip FS needs to use "." and ".." as links to the current and parent directories and cannot reliably support entries that have "." and ".." as name elements. This patch updates Zip Fs to reject ZIP files that have entries in the CEN that can't be used for files in a file system.
Mach5 tiers 1 through 3 have been run without any errors encountered .
Best,
Lance
-------------
Commit messages:
- Address missing linefeed after package name
- Address overzelous intellij import update
- Patch to address JDK-8251329
Changes: https://git.openjdk.java.net/jdk/pull/4900/files
Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=4900&range=00
Issue: https://bugs.openjdk.java.net/browse/JDK-8251329
Stats: 174 lines in 2 files changed: 174 ins; 0 del; 0 mod
Patch: https://git.openjdk.java.net/jdk/pull/4900.diff
Fetch: git fetch https://git.openjdk.java.net/jdk pull/4900/head:pull/4900
PR: https://git.openjdk.java.net/jdk/pull/4900
More information about the nio-dev
mailing list