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

Coverity analysis defect 123004: Dereference before null check

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Gone away
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • Internal Code
    • QE 2022-09-19

    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/pipeline/sharded_agg_helpers.cpp:1006: REVERSE_INULL 123004 Directly dereferencing pointer "pipeline".
      /src/mongo/db/pipeline/sharded_agg_helpers.cpp:1066: REVERSE_INULL 123004 Null-checking "pipeline" suggests that it may be null, but it has already been dereferenced on all paths leading to the check.

      Attachments

        Activity

          People

            ivan.fefer@mongodb.com Ivan Fefer
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: