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

Coverity analysis defect 128586: Dereference null return value

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • ALL
    • Execution Team 2022-09-05

      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".

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

              Created:
              Updated:
              Resolved: