[SERVER-37134] Coverity analysis defect 105001: Uninitialized scalar field Created: 14/Sep/18  Updated: 29/Oct/23  Resolved: 21/Sep/18

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

Type: Bug Priority: Major - P3
Reporter: Coverity Collector User Assignee: Annie Black
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: Security 2018-09-24
Participants:

 Description   

A scalar field is not initialized by the constructor

Defect 105001 (STATIC_C)
Checker UNINIT_CTOR (subcategory none)
File: /src/mongo/shell/shell_utils_launcher.cpp
Function mongo::shell_utils::ProgramRunner::ProgramRunner(const mongo::BSONObj &, const mongo::BSONObj &, bool)
/src/mongo/shell/shell_utils_launcher.h, line: 145
Class member declaration for "_pipe".

        int _pipe;

/src/mongo/shell/shell_utils_launcher.cpp, line: 384
Non-static class member "_pipe" is not initialized in this constructor nor in any functions that it calls.

    }



 Comments   
Comment by Githook User [ 21/Sep/18 ]

Author:

{'name': 'ablack12', 'email': 'annie.black@10gen.com', 'username': 'ablack12'}

Message: SERVER-37134 initialize _pipe and _port
Branch: master
https://github.com/mongodb/mongo/commit/73e7f1883f492dbefe25badd1ebdfed34859d844

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