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

merge_stack in check_code.c add NULL check

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 17
    • Fix Version/s: 17
    • Component/s: core-libs
    • Labels:
      None
    • Resolved In Build:
      b26
    • CPU:
      generic
    • OS:
      generic

      Description

      Sonar reports a potential NULL pointer dereference here :
      https://sonarcloud.io/project/issues?id=shipilev_jdk&languages=c&open=AXck8CPLBBG2CXpcnh_z&resolved=false&severities=MAJOR&types=BUG
      "Access to field 'item' results in a dereference of a null pointer (loaded from variable 'new')"
      It would be better to add a check .

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mbaesken Matthias Baesken
              Reporter:
              mbaesken Matthias Baesken
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: