Coverity analysis defect 135525: Dereference null return value

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 7.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Sharding EMEA
    • Fully Compatible
    • ALL
    • Sharding EMEA 2023-04-03
    • None
    • 3
    • 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/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
              Reporter:
              Coverity Collector User
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: