Coverity analysis defect 45825: Big parameter passed by value

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 3.2.0-rc3
    • Affects Version/s: None
    • Component/s: Replication
    • Fully Compatible
    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      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) {
      

            Assignee:
            Judah Schvimer
            Reporter:
            Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: