stack-use-after-scope in ZeroInterpreter::native_entry

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: P4
    • tbd
    • Affects Version/s: 21
    • Component/s: hotspot

      This is specifically for Zero, see https://github.com/openjdk/jdk/pull/12477#issuecomment-1424571609.

      It looks like the address of `env` is taken and stored in a buffer, however `env` becomes invalidated after the block and the buffer is then passed to FFI. `env` needs to outlive, so it should probably be moved up outside of the block.

            Assignee:
            Unassigned
            Reporter:
            Justin King
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: