Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8024971 Fuzzing results on nashorn by Andre
  3. JDK-8025090

'while' statement with 'test' using var before being declared in body results in VerifyError

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 8
    • Fix Version/s: 8
    • Component/s: core-libs
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b110
    • CPU:
      generic
    • OS:
      generic

      Description

      function f() {
         while (x += 2) { var x = 44 }
      }
       
      Exception in thread "main" java.lang.VerifyError: get long/double overflows locals
      Exception Details:
        Location:
          jdk/nashorn/internal/scripts/Script$test.f(Ljava/lang/Object;)Ljava/lang/Object; @7: dload_2
        Reason:
          Local index 2 is invalid
        Bytecode:
          0000000: a700 0714 002a 4928 1400 2c63 5c49 b800
          0000010: 339a fff2 b200 37b0
        Stackmap Table:
          append_frame(@3,Top,Double)
          chop_frame(@7,2)

        Attachments

          Activity

            People

            • Assignee:
              sundar Sundararajan Athijegannathan
              Reporter:
              sundar Sundararajan Athijegannathan
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: