Coverity analysis defect 138232: Dereference null return value

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Catalog and Routing
    • ALL
    • CAR Team To Be Assigned
    • 1
    • None
    • 3
    • TBD
    • 🟦 Shard Catalog
    • 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/catalog/collection_catalog.cpp:1208: NULL_RETURNS 138232 Assigning: "pending" = "nullptr" return value from "find".
      /src/mongo/db/catalog/collection_catalog.cpp:1209: NULL_RETURNS 138232 Attempting to access the managed object of an empty smart pointer "pending".

              Assignee:
              Unassigned
              Reporter:
              Coverity Collector User
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: