Coverity analysis defect 128586: Dereference null return value

XMLWordPrintableJSON

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

      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
            Reporter:
            Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: