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

Coverity analysis defect 155594: Dereference null return value

    • Type: Icon: Bug Bug
    • Resolution: Works as Designed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Catalog and Routing
    • ALL
    • CAR Team 2024-07-08
    • 1

      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/s/catalog_cache.cpp:358: NULL_RETURNS 155594 Assigning: "dbRefreshInfo" = "nullptr" return value from "extraInfo".
      /src/mongo/s/catalog_cache.cpp:360: NULL_RETURNS 155594 Attempting to access the managed object of an empty smart pointer "dbRefreshInfo".

            Assignee:
            sulabh.mahajan@mongodb.com Sulabh Mahajan
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: