[SERVER-71698] Coverity analysis defect 134260: Uninitialized scalar field Created: 30/Nov/22  Updated: 29/Oct/23  Resolved: 09/Dec/22

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

Type: Bug Priority: Major - P3
Reporter: Coverity Collector User Assignee: Davis Haupt (Inactive)
Resolution: Fixed Votes: 0
Labels: coverity, greenerbuild
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Query Optimization
Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:

 Description   

Uninitialized scalar field

The field will contain an arbitrary value left over from earlier computations. A scalar field is not initialized by the constructor
/src/mongo/db/query/plan_insert_listener.h:71: UNINIT_CTOR 134260 Class member declaration for "_lastEOFVersion".
/src/mongo/db/query/plan_insert_listener.h:57: UNINIT_CTOR 134260 Non-static class member "_lastEOFVersion" is not initialized in this constructor nor in any functions that it calls.



 Comments   
Comment by Githook User [ 09/Dec/22 ]

Author:

{'name': 'Davis Haupt', 'email': 'davis.haupt@mongodb.com', 'username': 'davish'}

Message: SERVER-71698 set default value for _lastEOFVersion
Branch: master
https://github.com/mongodb/mongo/commit/f4947f1d4a7493bd6dbd75bdbd0e600be0f884ec

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