[SERVER-68048] Coverity analysis defect 122536: Unsafe assignment operator Created: 14/Jul/22 Updated: 26/Jul/22 Resolved: 26/Jul/22 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Internal Code |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | Coverity Collector User | Assignee: | Alya Berciu |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | coverity, neweng | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
||||||||||||||||||||
| Issue Links: |
|
||||||||||||||||||||
| Operating System: | ALL | ||||||||||||||||||||
| Sprint: | QO 2022-08-08 | ||||||||||||||||||||
| 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 |
| Comments |
| Comment by Alya Berciu [ 26/Jul/22 ] |
|
Closing as a duplicate of |
| Comment by Alya Berciu [ 25/Jul/22 ] |
|
This should trivially be fixed by EDIT: Leaving this open for now instead of closing as duplicate because I'm not sure if the ticket would just be regenerated if I close it before merging that fix. |