[SERVER-69275] Coverity analysis defect 128677: Uninitialized scalar field Created: 31/Aug/22  Updated: 29/Oct/23  Resolved: 30/Dec/22

Status: Closed
Project: Core Server
Component/s: Internal Code
Affects Version/s: None
Fix Version/s: 6.3.0-rc0

Type: Bug Priority: Major - P3
Reporter: Coverity Collector User Assignee: Dianna Hohensee (Inactive)
Resolution: Fixed Votes: 0
Labels: coverity, neweng, pm2646-m4
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File Screen Shot 2022-08-31 at 10.15.04 AM.png    
Issue Links:
Duplicate
duplicates SERVER-72365 Coverity analysis defect 134411: Unin... Closed
Problem/Incident
is caused by SERVER-67623 Use uint64_t instead of RecordId in c... Closed
Assigned Teams:
Query Execution
Backwards Compatibility: Fully Compatible
Operating System: ALL
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/column_scan.h:241: UNINIT_CTOR 128677 Class member declaration for "_rowId".
/src/mongo/db/exec/sbe/stages/column_scan.cpp:77: UNINIT_CTOR 128677 Non-static class member "_rowId" is not initialized in this constructor nor in any functions that it calls.



 Comments   
Comment by Githook User [ 30/Dec/22 ]

Author:

{'name': 'Dianna Hohensee', 'email': 'dianna.hohensee@mongodb.com', 'username': 'DiannaHohensee'}

Message: SERVER-69275 initialize _rowId private member variable of ColumnScanStage
Branch: master
https://github.com/mongodb/mongo/commit/72ed3c5a8debbaeaf634fd58317743c724575b74

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