Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8066239 Fuzzing bug umbrella CR for issues reported by André Bargull
  3. JDK-8066230

Fuzzing bug: Undefined object type assertion when computing TypeBounds

    XMLWordPrintable

Details

    • Sub-task
    • Resolution: Fixed
    • P3
    • 9
    • 8u60
    • core-libs
    • None
    • b43
    • generic
    • generic

    Backports

      Description

        jjs> function f() { void null + 0; } f()
        Exception in thread "main" java.lang.AssertionError: object<type=Undefined>
           at jdk.nashorn.internal.codegen.CodeGenerator$TypeBounds.<init>(CodeGenerator.java:627)
           at jdk.nashorn.internal.codegen.CodeGenerator$TypeBounds.maybeNew(CodeGenerator.java:650)
           at jdk.nashorn.internal.codegen.CodeGenerator$TypeBounds.notNarrowerThan(CodeGenerator.java:635)
           at jdk.nashorn.internal.codegen.CodeGenerator.loadBinaryOperands(CodeGenerator.java:575)
           at jdk.nashorn.internal.codegen.CodeGenerator.access$6800(CodeGenerator.java:183)
           at jdk.nashorn.internal.codegen.CodeGenerator$14.loadStack(CodeGenerator.java:3575)
           at jdk.nashorn.internal.codegen.CodeGenerator$OptimisticOperation.emit(CodeGenerator.java:4407)
           at jdk.nashorn.internal.codegen.CodeGenerator$OptimisticOperation.emit(CodeGenerator.java:4392)
           at jdk.nashorn.internal.codegen.CodeGenerator.loadADD(CodeGenerator.java:3582)
           at jdk.nashorn.internal.codegen.CodeGenerator$1.enterADD(CodeGenerator.java:872)
           ...

        Attachments

          Issue Links

            Activity

              People

                attila Attila Szegedi
                lagergren Marcus Lagergren
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: