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

Coverity analysis defect 114771: Dereference after null check

    XMLWordPrintable

    Details

    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v4.4
    • Sprint:
      Execution Team 2020-08-24

      Description

      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.)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              benety.goh Benety Goh
              Reporter:
              xgen-internal-coverity Coverity Collector User
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: