[SERVER-50834] Coverity analysis defect 115718: Uninitialized scalar field Created: 09/Sep/20  Updated: 29/Oct/23  Resolved: 16/Sep/20

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.8.0

Type: Bug Priority: Major - P3
Reporter: Coverity Collector User Assignee: Anton Korshunov
Resolution: Fixed Votes: 0
Labels: coverity, coverity-pm-1854-tracking, qexec-team
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-49363 Triage Coverity Issues for Query code... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Query 2020-09-21
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/exec/sbe/stages/spool.h:245: UNINIT_CTOR 115718 Class member declaration for "_bufferIt".
/src/mongo/db/exec/sbe/stages/spool.h:150: UNINIT_CTOR 115718 Non-static class member "_bufferIt" is not initialized in this constructor nor in any functions that it calls.



 Comments   
Comment by Githook User [ 16/Sep/20 ]

Author:

{'name': 'Anton Korshunov', 'email': 'anton.korshunov@mongodb.com', 'username': 'antkorsh'}

Message: SERVER-50834 Initialize _bufferIt in SBE spool stages
Branch: master
https://github.com/mongodb/mongo/commit/31b68dc5a867db96e33a33fc8f4d3f2ceb22a9f9

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