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

Coverity analysis defect 45825: Big parameter passed by value

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 3.2.0-rc3
    • None
    • Replication
    • Fully Compatible
    • ALL

    Description

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

      Defect 45825 (STATIC_C)
      Checker PASS_BY_VALUE (subcategory none)
      File: /src/mongo/db/repl/member_heartbeat_data.cpp
      Function mongo::repl::MemberHeartbeatData::setUpValues(mongo::Date_t, const mongo::HostAndPort &, mongo::repl::ReplSetHeartbeatResponse)
      /src/mongo/db/repl/member_heartbeat_data.cpp, line: 50
      Passing parameter hbResponse of type "mongo::repl::ReplSetHeartbeatResponse" (size 296 bytes) by value.

                                                ReplSetHeartbeatResponse hbResponse) {

      Attachments

        Activity

          People

            judah.schvimer@mongodb.com Judah Schvimer
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: