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

Coverity analysis defect 101902: Dereference after null check

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Sharding
    • Fully Compatible
    • ALL
    • Sharding 2017-08-21

    Description

      Pointer is checked against null but then dereferenced anyway

      Defect 101902 (STATIC_C)
      Checker FORWARD_NULL (subcategory none)
      File: /src/mongo/db/db.cpp
      Function mongo::<unnamed>::shutdownTask()
      /src/mongo/db/db.cpp, line: 985
      Comparing "opCtx" to null implies that "opCtx" might be null.

              if (opCtx) {

      Attachments

        Activity

          People

            esha.maharishi@mongodb.com Esha Maharishi (Inactive)
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: