[SERVER-65410] Coverity analysis defect 122052: Uninitialized scalar field Created: 09/Apr/22  Updated: 29/Oct/23  Resolved: 15/Apr/22

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

Type: Bug Priority: Major - P3
Reporter: Coverity Collector User Assignee: Hana Pearlman
Resolution: Fixed Votes: 0
Labels: coverity
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by SERVER-65411 Coverity analysis defect 122059: Unin... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: QO 2022-05-02
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/fle/server_rewrite.h:210: UNINIT_CTOR 122052 Class member declaration for "_rewroteLastExpression".
/src/mongo/db/query/fle/server_rewrite.h:190: UNINIT_CTOR 122052 Non-static class member "_rewroteLastExpression" is not initialized in this constructor nor in any functions that it calls.



 Comments   
Comment by Githook User [ 15/Apr/22 ]

Author:

{'name': 'Hana Pearlman', 'email': 'hana.pearlman@mongodb.com', 'username': 'HanaPearlman'}

Message: SERVER-65410: Fix uninitialized scalar field in server_rewrite
Branch: master
https://github.com/mongodb/mongo/commit/a22dcf11b387ed677a8e8e6854478e63dfdf6060

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