Uploaded image for project: 'Harmony'
  1. Harmony
  2. HARMONY-6285

[JDWP][Java6] Fix a bug in Execute method of GetValuesHandler that might result in crash

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 5.0M10
    • None
    • JDK
    • None
    • Patch Available

    Description

      In Execute method of GetValuesHandler, if the array object can't be retrieved from the MapFromObjectID method, the value for it would be null.
      Then, in the following JNI method, a null value passed to it would definitely result in a crash. To solve the problem, we should throw an exception to notify the upper level method that "GetValues: ReadArrayID() returned NULL".

      jclass arrObjClass = jni->GetObjectClass(arrayObject);

      Attachments

        1. HARMONY-6285.diff
          0.8 kB
          Jim Yu

        Activity

          People

            regis_xu Regis Xu
            junjie0122 Jim Yu
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: