Coverity analysis defect 134901: Dereference null return value

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Gone away
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Storage Execution
    • ALL
    • Execution Team 2023-04-17
    • None
    • 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:800: NULL_RETURNS 134901 Assigning: "latestCollection" = "nullptr" return value from "lookupCollectionByNamespaceForRead".
      /src/mongo/db/catalog/collection_catalog.cpp:804: NULL_RETURNS 134901 Attempting to access the managed object of an empty smart pointer "latestCollection".

            Assignee:
            Gregory Wlodarek
            Reporter:
            Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: