[SERVER-73296] Coverity analysis defect 134929: Uninitialized pointer field Created: 25/Jan/23  Updated: 29/Oct/23  Resolved: 03/Feb/23

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

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

Assigned Teams:
Query Execution
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: QE 2023-02-20
Participants:

 Description   

Uninitialized pointer field

The pointer field will point to an arbitrary memory location, any attempt to write may cause corruption. A pointer field is not initialized in the constructor
/src/mongo/db/exec/sbe/stages/ix_scan.h:156: UNINIT_CTOR 134929 Class member declaration for "_entry".
/src/mongo/db/exec/sbe/stages/ix_scan.cpp:65: UNINIT_CTOR 134929 Non-static class member "_entry" is not initialized in this constructor nor in any functions that it calls.



 Comments   
Comment by Githook User [ 03/Feb/23 ]

Author:

{'name': 'Projjal Chanda', 'email': 'projjal.chanda@mongodb.com', 'username': 'projjal'}

Message: SERVER-73296: Initialize the index entry field to null in ix_scan.h
Branch: master
https://github.com/mongodb/mongo/commit/0618b84a89c6bbb273f3a5e5025f05108c165ff9

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