[SERVER-75020] Coverity analysis defect 135486: AUTO_CAUSES_COPY Created: 19/Mar/23  Updated: 29/Oct/23  Resolved: 28/Mar/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.0.0-rc0

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

Issue Links:
Duplicate
is duplicated by SERVER-75024 Coverity analysis defect 135481: Unin... Closed
Assigned Teams:
Server Security
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Security 2023-04-03
Participants:

 Description   

AUTO_CAUSES_COPY

Unnecessary object copies can affect performance. Using the auto keyword without an & causes a copy.
/src/mongo/crypto/fle_crypto.cpp:5870: AUTO_CAUSES_COPY 135486 Using the "auto" keyword without an "&" causes the copy of an object of type ConstDataRange.



 Comments   
Comment by Githook User [ 28/Mar/23 ]

Author:

{'name': 'Shreyas Kalyan', 'email': 'shreyas.kalyan@mongodb.com', 'username': 'shreyaskal'}

Message: SERVER-75020 Fix fle coverity defects
Branch: master
https://github.com/mongodb/mongo/commit/a1bc513d167d4238b0d88a94de74e19e84817791

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