[SERVER-37211] Coverity analysis defect 105026: MISSING_ASSIGN Created: 19/Sep/18  Updated: 29/Oct/23  Resolved: 25/Sep/18

Status: Closed
Project: Core Server
Component/s: Shell
Affects Version/s: None
Fix Version/s: 4.1.4

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

Issue Links:
Related
is related to SERVER-36614 Add __exec handling to config expansion Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Security 2018-10-08
Participants:

 Description   

MISSING_ASSIGN

Defect 105026 (STATIC_C)
Checker MISSING_ASSIGN (subcategory uncalled)
File: /src/mongo/util/shell_exec.cpp
Parse Warning (no function name available)
/src/mongo/util/shell_exec.cpp, line: 203
Class "mongo::<unnamed>::ProcessStream" owns resources that are freed in its destructor but has no user-written assignment operator.

    class ProcessStream {



 Comments   
Comment by Githook User [ 25/Sep/18 ]

Author:

{'name': 'Sara Golemon', 'email': 'sara.golemon@mongodb.com', 'username': 'sgolemon'}

Message: SERVER-37211 Make ProcessStream non-copyable/assignable
Branch: master
https://github.com/mongodb/mongo/commit/ec665e83bb1af0224d23a2d83ff2d9fade01f60f

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