RFR: 8280409: JarFile::getInputStream can fail with NPE accessing ze.getName() [v5]
Lance Andersen
lancea at openjdk.java.net
Fri Feb 18 19:26:45 UTC 2022
> Hi all,
>
> Please review the attached patch to address
>
> - That JarFile::getInputStream did not check for a null ZipEntry passed as a parameter
> - Have Zip/JarFile::getInputStream throw a ZipException in the event that an unexpected exception occurs
>
> Mach5 tiers1-3 runs are clean as are the TCK java.util.zip and java.util.jar test runs
>
> Best
> Lance
Lance Andersen has updated the pull request incrementally with one additional commit since the last revision:
Add additional comments describing how the jars are created
-------------
Changes:
- all: https://git.openjdk.java.net/jdk/pull/7348/files
- new: https://git.openjdk.java.net/jdk/pull/7348/files/d5cf8db8..490c986d
Webrevs:
- full: https://webrevs.openjdk.java.net/?repo=jdk&pr=7348&range=04
- incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=7348&range=03-04
Stats: 29 lines in 1 file changed: 28 ins; 0 del; 1 mod
Patch: https://git.openjdk.java.net/jdk/pull/7348.diff
Fetch: git fetch https://git.openjdk.java.net/jdk pull/7348/head:pull/7348
PR: https://git.openjdk.java.net/jdk/pull/7348
More information about the core-libs-dev
mailing list