[SERVER-22757] Coverity analysis defect 77721: Big parameter passed by value Created: 19/Feb/16  Updated: 19/Feb/16  Resolved: 19/Feb/16

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Coverity Collector User Assignee: Jonathan Reams
Resolution: Done Votes: 0
Labels: coverity
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:

 Description   

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

Defect 77721 (STATIC_C)
Checker PASS_BY_VALUE (subcategory none)
File: /src/mongo/util/assert_util.h
Function mongo::uassertStatusOK<mongo::MongoURI>(mongo::StatusWith<T1>)
/src/mongo/util/assert_util.h, line: 245
Passing parameter sw of type "mongo::StatusWith<mongo::MongoURI>" (size 136 bytes) by value.

    inline T uassertStatusOK(StatusWith<T> sw) {



 Comments   
Comment by Eric Milkie [ 19/Feb/16 ]

Copy by value is intended and is probably elided anyway since this is an inlined function.

Generated at Thu Feb 08 04:01:20 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.