[SERVER-50783] Coverity analysis defect 116260: Unsafe assignment operator Created: 07/Sep/20  Updated: 29/Oct/23  Resolved: 28/Sep/20

Status: Closed
Project: Core Server
Component/s: Querying
Affects Version/s: None
Fix Version/s: 4.8.0

Type: Bug Priority: Major - P3
Reporter: Coverity Collector User Assignee: Drew Paroski
Resolution: Fixed Votes: 0
Labels: coverity, qexec-team
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Query 2020-10-05
Participants:

 Description   

Unsafe assignment operator

This user-written assignment operator does not check for self-assignment. If an object of this type is assigned to itself use-after-free errors may occur if the class owns resources. Assignment operator does not check for self-assignment
/src/mongo/db/query/sbe_stage_builder_filter.cpp:116: SELF_ASSIGN 116260 No protection against the object assigning to itself.



 Comments   
Comment by Githook User [ 28/Sep/20 ]

Author:

{'name': 'Drew Paroski', 'email': 'drew.paroski@mongodb.com', 'username': 'paroski'}

Message: SERVER-50783 Coverity analysis defect 116260: Unsafe assignment operator
Branch: master
https://github.com/mongodb/mongo/commit/5b46992843fd3643395bce807d269d751f10763d

Generated at Thu Feb 08 05:23:34 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.