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

Coverity analysis defect 103434: Dereference null return value

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Gone away
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Replication
    • Replication
    • ALL

    Description

      Return value of function which returns null is dereferenced without checking

      Defect 103434 (STATIC_C)
      Checker NULL_RETURNS (subcategory none)
      File: /src/mongo/db/op_observer_impl.cpp
      Function mongo::OpObserverImpl::onTransactionPrepare(mongo::OperationContext *)
      /src/mongo/db/op_observer_impl.cpp, line: 873
      Assigning: "session" = null return value from "get".

              Session* const session = OperationContextSession::get(opCtx);

      Attachments

        Activity

          People

            backlog-server-repl Backlog - Replication Team
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: