[SERVER-57143] Coverity analysis defect 120115: Uninitialized scalar field Created: 23/May/21  Updated: 29/Oct/23  Resolved: 15/Jun/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: Ridhwaan Anayetullah (Inactive)
Resolution: Fixed Votes: 0
Labels: coverity, neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Query Optimization 2021-06-14, Query Optimization 2021-06-28
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/window_function/window_function_exec_removable_document.h:80: UNINIT_CTOR 120115 Class member declaration for "_lowerBound".
/src/mongo/db/pipeline/window_function/window_function_exec_removable_document.cpp:70: UNINIT_CTOR 120115 Non-static class member "_lowerBound" 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 [ 15/Jun/21 ]

Author:

{'name': 'Ridhwaan Anayetullah', 'email': 'ridhwaan.any@gmail.com', 'username': 'RidhwaanDev'}

Message: SERVER-57143 fix uninitialized scalar field
Branch: master
https://github.com/mongodb/mongo/commit/da7e9ba0565fde3659612384758ada34c5097aab

Comment by Kyle Suarez [ 24/May/21 ]

Window functions! Sending this towards Query Optimization. CC david.percy, nicholas.zolnierz, ted.tuckman et al.

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