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

Coverity analysis defect 114771: Dereference after null check

    • Fully Compatible
    • ALL
    • v4.4
    • Execution Team 2020-08-24

      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@mongodb.com Benety Goh
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: