[SERVER-30201] Coverity analysis defect 101837: Wrapper object use after free Created: 18/Jul/17  Updated: 29/Jan/18  Resolved: 18/Jul/17

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

Type: Bug Priority: Major - P3
Reporter: Coverity Collector User Assignee: Kaloian Manassiev
Resolution: Won't Fix Votes: 0
Labels: coverity
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Sharding 2017-07-31
Participants:

 Description   

An internal pointer of a wrapper object remains available after the object is freed

Defect 101837 (STATIC_C)
Checker WRAPPER_ESCAPE (subcategory none)
File: /src/mongo/s/config_server_test_fixture.cpp
Function mongo::ConfigServerTestFixture::setUp()
/src/mongo/s/config_server_test_fixture.cpp, line: 118
The internal representation of local "specialExec" escapes into "this->_executorForAddShard", but is destroyed when it exits scope.

            _executorForAddShard = specialExec.get();


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