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

Coverity analysis defect 104958: Dereference null return value

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Testing Infrastructure
    • Labels:
    • ALL

      Return value of function which returns null is dereferenced without checking

      Defect 104958 (STATIC_C)
      Checker NULL_RETURNS (subcategory none)
      File: /src/mongo/db/ops/write_ops_exec.cpp
      Function mongo::performDeletes(mongo::OperationContext *, const mongo::write_ops::Delete &)
      /src/mongo/db/ops/write_ops_exec.cpp, line: 835
      Assigning: "txnParticipant" = null return value from "get".

              auto txnParticipant = TransactionParticipant::get(opCtx);
      

            Assignee:
            milkie@mongodb.com Eric Milkie
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: