[SERVER-55339] Coverity analysis defect 117876: Uninitialized scalar field Created: 19/Mar/21  Updated: 29/Oct/23  Resolved: 31/Mar/21

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

Type: Bug Priority: Major - P3
Reporter: Coverity Collector User Assignee: Yuhong Zhang
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: Query Optimization 2021-04-05
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_set_window_fields.h:140: UNINIT_CTOR 117876 Class member declaration for "_maxMemory".
/src/mongo/db/pipeline/document_source_set_window_fields.h:98: UNINIT_CTOR 117876 Non-static class member "_maxMemory" is not initialized in this constructor nor in any functions that it calls.



 Comments   
Comment by Githook User [ 30/Mar/21 ]

Author:

{'name': 'Yuhong Zhang', 'email': 'danielzhangyh@gmail.com', 'username': 'YuhongZhang98'}

Message: SERVER-55339 Coverity analysis defect 117876: Uninitialized scalar field
Branch: master
https://github.com/mongodb/mongo/commit/dea9a4b11448c48cef4c4b28f53af833c1c49432

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