[SERVER-70590] Coverity analysis defect 133991: Uninitialized scalar field Created: 14/Oct/22  Updated: 29/Oct/23  Resolved: 26/Oct/22

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

Type: Bug Priority: Major - P3
Reporter: Coverity Collector User Assignee: Shreyas Kalyan
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: Security 2022-10-31
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/crypto/fle_crypto.h:1356: UNINIT_CTOR 133991 Class member declaration for "payloadId".
/src/mongo/crypto/fle_crypto.cpp:3211: UNINIT_CTOR 133991 Non-static class member "payloadId" is not initialized in this constructor nor in any functions that it calls.
/src/mongo/crypto/fle_crypto.h:1358: UNINIT_CTOR 133991 Class member declaration for "maxCounter".
/src/mongo/crypto/fle_crypto.cpp:3211: UNINIT_CTOR 133991 Non-static class member "maxCounter" is not initialized in this constructor nor in any functions that it calls.



 Comments   
Comment by Githook User [ 26/Oct/22 ]

Author:

{'name': 'Shreyas Kalyan', 'email': 'shreyas.kalyan@mongodb.com', 'username': 'shreyaskal'}

Message: SERVER-70590 Coverity analysis defect 133991: Uninitialized scalar field
Branch: master
https://github.com/mongodb/mongo/commit/4fcabfe5ddc7a0b9faa5ed8f1009dc39ac69e1ec

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