Coverity analysis defect 114771: Dereference after null check

XMLWordPrintableJSON

    • Fully Compatible
    • ALL
    • v4.4
    • Execution Team 2020-08-24
    • None
    • 3
    • None
    • 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
      /src/mongo/db/catalog/index_builds_manager.cpp:135: FORWARD_NULL 114771 Comparing "coll" to null implies that "coll" might be null.
      /src/mongo/db/catalog/index_builds_manager.cpp:146: FORWARD_NULL 114771 Passing null pointer "coll" to "numRecords", which dereferences it. (The dereference happens because this is a virtual function call.)

              Assignee:
              Benety Goh
              Reporter:
              Coverity Collector User
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: