Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8019476 Issues found by jsfunfuzz
  3. JDK-8019809

Break return statement can create erroneous bytecode

    XMLWordPrintable

Details

    • Sub-task
    • Resolution: Fixed
    • P4
    • 8
    • 8
    • core-libs
    • None
    • b100
    • generic
    • generic
    • Verified

    Description

      jjs> Function("L: {break L;return; }");
      Compiling threw: java.lang.VerifyError: StackMapTable error: bad offset
      Exception Details:
        Location:
      jdk/nashorn/internal/scripts/Script$jsfunfuzz._L1(Ljdk/nashorn/internal/runtime/ScriptFunction;Ljava/lang/Object;)Ljava/lang/Object; @0: aload_0
        Reason:
          Invalid stackmap specification.
        Current Frame:
          bci: @8
          flags: { }
          locals: { 'jdk/nashorn/internal/runtime/ScriptFunction', 'java/lang/Object', 'jdk/nashorn/internal/runtime/ScriptObject' }
          stack: { }
        Bytecode:
          0000000: 2ab6 0018 4da7 0003
        Stackmap Table:
          append_frame(@8,Object[#53])

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: