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

Coverity analysis defect 155599: Dereference null return value

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0
    • Affects Version/s: 7.0.0, 8.0.0-rc0, 7.3.0, 8.1.0-rc0
    • Component/s: None
    • Catalog and Routing
    • Fully Compatible
    • ALL
    • v8.0, v7.3, v7.0
    • CAR Team 2024-08-19
    • 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/db/s/shardsvr_check_metadata_consistency_command.cpp:251: NULL_RETURNS 155599 Assigning: "extraInfo" = "nullptr" return value from "extraInfo".
      /src/mongo/db/s/shardsvr_check_metadata_consistency_command.cpp:252: NULL_RETURNS 155599 Attempting to access the managed object of an empty smart pointer "extraInfo".

            Assignee:
            enrico.golfieri@mongodb.com Enrico Golfieri
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: