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

Coverity analysis defect 135525: Dereference null return value

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • Sharding EMEA
    • Fully Compatible
    • ALL
    • Sharding EMEA 2023-04-03

      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_participant_command.cpp:100: NULL_RETURNS 135525 Dereferencing a pointer that might be "nullptr" "*it" when calling "ns". (The dereference happens because this is a virtual function call.)

            Assignee:
            antonio.fuschetto@mongodb.com Antonio Fuschetto
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: