[SERVER-24808] Coverity analysis defect 99677: Big parameter passed by value Created: 27/Jun/16  Updated: 19/Jul/16  Resolved: 27/Jun/16

Status: Closed
Project: Core Server
Component/s: Security
Affects Version/s: None
Fix Version/s: 3.3.10

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

Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Security 16 (06/24/16)
Participants:

 Description   

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

Defect 99677 (STATIC_C)
Checker PASS_BY_VALUE (subcategory none)
File: /src/mongo/db/modules/enterprise/src/ldap/ldap_runtime_parameters.cpp
Function mongo::<unnamed>::LDAPUserToDNMappingSetting::set(const mongo::BSONElement &)
/src/mongo/db/modules/enterprise/src/ldap/ldap_runtime_parameters.cpp, line: 147
Catching an exception object of size 80 bytes by value.

            } catch (MsgAssertionException msg) {



 Comments   
Comment by Githook User [ 27/Jun/16 ]

Author:

{u'name': u'Andreas Nilsson', u'email': u'andreas.nilsson@mongodb.com'}

Message: SERVER-24808 Use const ref for MsgAssertionException
Branch: master
https://github.com/10gen/mongo-enterprise-modules/commit/f2fcc051264d91e17784e064dfa682956971589b

Comment by Githook User [ 27/Jun/16 ]

Author:

{u'name': u'Andreas Nilsson', u'email': u'andreas.nilsson@mongodb.com'}

Message: SERVER-24808 Use const ref for MsgAssertionException
Branch: master
https://github.com/mongodb/mongo/commit/00e103fc3a5264c098536f303b6bbda2bf5c868e

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