Fuzzing bug: Invalid pc in LineNumberTable, ClassFormatError

XMLWordPrintable

    • Type: Sub-task
    • Resolution: Duplicate
    • Priority: P3
    • None
    • Affects Version/s: 8u60
    • Component/s: core-libs
    • None


      jjs> Function("L:with(Object in Object)break L;\n{}")()
      Exception in thread "main" java.lang.ClassFormatError: Invalid pc in LineNumberTable in class file jdk/nashorn/internal/scripts/Script$Recompilation$6$1$\^function\_
         at java.lang.ClassLoader.defineClass1(Native Method)
         at java.lang.ClassLoader.defineClass(ClassLoader.java:760)
         at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
         at jdk.nashorn.internal.runtime.ScriptLoader.installClass(ScriptLoader.java:74)
         at jdk.nashorn.internal.runtime.Context$ContextCodeInstaller.install(Context.java:183)
         at jdk.nashorn.internal.codegen.CompilationPhase$14.transform(CompilationPhase.java:556)
         at jdk.nashorn.internal.codegen.CompilationPhase.apply(CompilationPhase.java:728)
         at jdk.nashorn.internal.codegen.Compiler.compile(Compiler.java:620)
         at jdk.nashorn.internal.runtime.RecompilableScriptFunctionData.compileTypeSpecialization(RecompilableScriptFunctionData.java:513)
         at jdk.nashorn.internal.runtime.RecompilableScriptFunctionData.getBest(RecompilableScriptFunctionData.java:730)
         ...

            Assignee:
            Attila Szegedi
            Reporter:
            Marcus Lagergren
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: