Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-68729

Coverity analysis defect 128586: Dereference null return value

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Duplicate
    • None
    • None
    • None
    • ALL
    • Execution Team 2022-09-05

    Description

      Dereference null return value

      If the function actually returns a null value, a null pointer dereference will occur. Return value of function which returns null is dereferenced without checking
      /src/mongo/db/commands/write_commands.cpp:1357: NULL_RETURNS 128586 Assigning: "bucketsColl" = "nullptr" return value from "lookupCollectionByNamespaceForRead".
      /src/mongo/db/commands/write_commands.cpp:1360: NULL_RETURNS 128586 Attempting to access the managed object of an empty smart pointer "bucketsColl".

      Attachments

        Issue Links

          Activity

            People

              dan.larkin-york@mongodb.com Dan Larkin-York
              xgen-internal-coverity Coverity Collector User
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: