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

Coverity analysis defect 99693: Big parameter passed by value

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Replication
    • Replication
    • ALL
    • Repl 17 (07/15/16), Repl 18 (08/05/16)

    Description

      A large function call parameter or exception catch statement is passed by value

      Defect 99693 (STATIC_C)
      Checker PASS_BY_VALUE (subcategory none)
      File: /src/mongo/db/repl/data_replicator.cpp
      Function mongo::repl::DataReplicator::DataReplicator(mongo::repl::DataReplicatorOptions, std::unique_ptr<mongo::repl::DataReplicatorExternalState, std::default_delete<mongo::repl::DataReplicatorExternalState>>, mongo::repl::ReplicationExecutor *, mongo::repl::StorageInterface *)
      /src/mongo/db/repl/data_replicator.cpp, line: 240
      Passing parameter opts of type "mongo::repl::DataReplicatorOptions" (size 384 bytes) by value.

              DataReplicatorOptions opts,

      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: