Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8184009

Missing null pointer check in InterpreterRuntime::update_mdp_for_ret()

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 8u161, 9, 10
    • Fix Version/s: 10
    • Component/s: hotspot
    • Subcomponent:
    • Resolved In Build:
      b21

      Backports

        Description

        MethodData::data_at(int data_index) may return NULL if the data_index is out of bounds but the code in InterpreterRuntime::update_mdp_for_ret() does not check for NULL:

          ProfileData* data = h_mdo->data_at(h_mdo->dp_to_di(fr.interpreter_frame_mdp()));
          RetData* rdata = data->as_RetData();

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  thartmann Tobias Hartmann
                  Reporter:
                  thartmann Tobias Hartmann
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: