Coverity analysis defect 174178: Dereference after null check

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Replication
    • ALL
    • Repl 2025-05-12
    • None
    • 3
    • TBD
    • None
    • None
    • None
    • None
    • None
    • None

      Dereference after null check

      Either the check against null is unnecessary, or there may be a null pointer dereference. Pointer is checked against null but then dereferenced anyway
      /data/mci/4ba631a853ce50f16755b234d8179d50/bazel_cache/9df6a3fc2ada258bfb34802feb09750c/execroot/_main/src/mongo/db/repl/dbcheck/dbcheck.cpp:1184: FORWARD_NULL 174178 Comparing "indexDescriptor" to null implies that "indexDescriptor" might be null.

            Assignee:
            Brad Cater
            Reporter:
            Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: