[SERVER-54455] Coverity analysis defect 117647: Uninitialized pointer field Created: 10/Feb/21  Updated: 18/Feb/21  Resolved: 18/Feb/21

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

Type: Bug Priority: Major - P3
Reporter: Coverity Collector User Assignee: Benjamin Caimano (Inactive)
Resolution: Duplicate Votes: 0
Labels: coverity
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-52862 Move logAuthentication hooks to Authe... Closed
Operating System: ALL
Sprint: Security 2021-02-22
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/auth/authentication_session.h:79: UNINIT_CTOR 117647 Class member declaration for "_session".
/src/mongo/db/auth/authentication_session.cpp:84: UNINIT_CTOR 117647 Non-static class member "_session" is not initialized in this constructor nor in any functions that it calls.


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