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

Coverity analysis defect 128586: Dereference null return value

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major - P3 Major - P3
    • 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

        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: