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

Possible NULL dereference in Arena::destruct_contents()

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b14

      Backports

        Description

        Sonarcloud reports a possible access to a NULL C++ object in Arena::destruct_contents():

        ```
        _first->chop();
        ```

        I have found no code path where this could happen but _first could conceivably be NULL after a call to Arena::reset(). Lets fix that.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                stuefe Thomas Stuefe
                Reporter:
                stuefe Thomas Stuefe
                Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: