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

Coverity analysis defect 101903: Dereference before null check

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 3.5.12
    • None
    • Sharding
    • Fully Compatible
    • ALL
    • 0

    Description

      All paths that lead to this null pointer comparison already dereference the pointer earlier

      Defect 101903 (STATIC_C)
      Checker REVERSE_INULL (subcategory none)
      File: /src/mongo/db/db.cpp
      Function mongo::<unnamed>::shutdownTask()
      /src/mongo/db/db.cpp, line: 1076
      Null-checking "opCtx" suggests that it may be null, but it has already been dereferenced on all paths leading to the check.

              if (opCtx) {

      Attachments

        Activity

          People

            kaloian.manassiev@mongodb.com Kaloian Manassiev
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: