RFR: 8322040: Missing array bounds check in ClassReader.parameter

Alan Bateman alanb at openjdk.org
Fri Dec 15 11:23:49 UTC 2023


On Wed, 13 Dec 2023 22:57:04 GMT, Liam Miller-Cushon <cushon at openjdk.org> wrote:

> Hello,
> 
> Please consider this fix which adds a missing array bounds check in `ClassReader.parameter`.
> 
> I found this while investigating the crash described in [JDK-8322040](https://bugs.openjdk.org/browse/JDK-8322040).

test/langtools/tools/javac/classreader/BadMethodParameter.java doesn't compile

<dir>/test/langtools/tools/javac/classreader/BadMethodParameter.java:38: error: package jdk.internal.classfile does not exist
import jdk.internal.classfile.ClassModel;

Maybe it was created before the class file API before a preview API? In any case it is failing in tier1 now, needs to be fixed.

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

PR Comment: https://git.openjdk.org/jdk/pull/17097#issuecomment-1857714054


More information about the compiler-dev mailing list