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

Coverity analysis defect 128580: Dereference before null check

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • ALL

    Description

      Dereference before null check

      There may be a null pointer dereference, or else the comparison against null is unnecessary. All paths that lead to this null pointer comparison already dereference the pointer earlier
      /src/mongo/db/s/global_index/global_index_cloner_fetcher.cpp:159: REVERSE_INULL 128580 Directly dereferencing pointer "this->_pipeline".
      /src/mongo/db/s/global_index/global_index_cloner_fetcher.cpp:167: REVERSE_INULL 128580 Null-checking "this->_pipeline" suggests that it may be null, but it has already been dereferenced on all paths leading to the check.

      Attachments

        Activity

          People

            randolph@mongodb.com Randolph Tan
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: