[SERVER-59895] Coverity analysis defect 120718: Uninitialized scalar field Created: 12/Sep/21  Updated: 29/Oct/23  Resolved: 19/Sep/21

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

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

Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: QE 2021-10-04
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/pipeline/document_source_group.h:298: UNINIT_CTOR 120718 Class member declaration for "_sbeCompatible".
/src/mongo/db/pipeline/document_source_group.cpp:409: UNINIT_CTOR 120718 Non-static class member "_sbeCompatible" is not initialized in this constructor nor in any functions that it calls.



 Comments   
Comment by Vivian Ge (Inactive) [ 06/Oct/21 ]

Updating the fixversion since branching activities occurred yesterday. This ticket will be in rc0 when it’s been triggered. For more active release information, please keep an eye on #server-release. Thank you!

Comment by Githook User [ 19/Sep/21 ]

Author:

{'name': 'Steve La', 'email': 'steve.la@mongodb.com', 'username': 'stevela-mdb'}

Message: SERVER-59895 init _sbeCompatible
Branch: master
https://github.com/mongodb/mongo/commit/a0ca315a73a8028eb0ffd00531fd98638bc7608a

Comment by Kyle Suarez [ 13/Sep/21 ]

Looks like this is related to SERVER-59035?

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