Off by one bug in com.sun/tools.javac.jvm.ClassReader
forax at univ-mlv.fr
forax at univ-mlv.fr
Mon Sep 14 13:18:55 UTC 2015
Thank Maurizio !
Rémi
----- Mail original -----
> De: "Maurizio Cimadamore" <maurizio.cimadamore at oracle.com>
> À: "Remi Forax" <forax at univ-mlv.fr>, compiler-dev at openjdk.java.net
> Envoyé: Lundi 14 Septembre 2015 12:07:01
> Objet: Re: Off by one bug in com.sun/tools.javac.jvm.ClassReader
>
> Hi Remi,
> thanks for the report; filed:
>
> https://bugs.openjdk.java.net/browse/JDK-8136453
>
> Maurizio
>
> On 14/09/15 08:15, Remi Forax wrote:
> > Hi gang,
> > I think Andreas Stefik has found a bug in
> > com.sun.tools.javac.jvm.ClassReader in the code that parse the
> > LocalVariableTable
> > and try to guess that a variable is a parameter (to have a nice completion
> > in NetBeans i suppose).
> >
> > At line 1068 [1], the code should be
> > int newSize = Math.max(register + 1, parameterNameIndices.length + 8);
> > otherwise the line 1072 will throw an AIOOBE.
> >
> > see this thread on the ASM mailing list for the whole story:
> > http://mail.ow2.org/wws/arc/asm/2015-09/msg00005.html
> >
> > cheers,
> > Rémi
> >
> > http://hg.openjdk.java.net/jdk8u/jdk8u-dev/langtools/file/ebe1e9d17713/src/share/classes/com/sun/tools/javac/jvm/ClassReader.java#l1068
>
>
More information about the compiler-dev
mailing list