[SERVER-7098] Audit all classes and check whether it needs to be non-copyable (or implement a correct copy-constructor or use shared_ptr) Created: 21/Sep/12  Updated: 23/Feb/15  Resolved: 23/Feb/15

Status: Closed
Project: Core Server
Component/s: Internal Client
Affects Version/s: 2.2.0
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Randolph Tan Assignee: Tyler Brock
Resolution: Won't Fix Votes: 0
Labels: cxxcopy
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 Description   

For example, BSONIteratorSorted and ScopedDbConnection maintains the life cycle of the internal pointers it has and the default and naive copy constructor can result to a double free.



 Comments   
Comment by Crystal Horn [ 23/Feb/15 ]

Auditing all classes in the server is unrealistic at this time.

Generated at Thu Feb 08 03:13:37 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.