Operational Defect Database

BugZero found this defect 2502 days ago.

MongoDB | 375045

[SERVER-28834] Coverity analysis defect 101485: Wrapper object use after free

Last update date:

1/29/2018

Affected products:

MongoDB Server

Affected releases:

No affected releases provided.

Fixed releases:

No fixed releases provided.

Description:

Info

An internal pointer of a wrapper object remains available after the object is freed Defect 101485 (STATIC_C) Checker WRAPPER_ESCAPE (subcategory none) File: /src/mongo/s/sharding_test_fixture.cpp Function mongo::ShardingTestFixture::setUp() /src/mongo/s/sharding_test_fixture.cpp, line: 132 The internal representation of local "fixedExec" escapes into "this->_executor", but is destroyed when it exits scope. _executor = fixedExec.get();

Top User Comments

renctan commented on Tue, 18 Apr 2017 17:06:37 +0000: Marked as ignored in Coverity. milkie commented on Tue, 18 Apr 2017 13:12:40 +0000: While this is technically a false positive, as we std::move the unique pointer and stash it away somewhere later on in the function, I'm not sure we want to let this pattern proliferate.

Additional Resources / Links

Share:

BugZero Risk Score

Coming soon

Status

Closed

Have you been affected by this bug?

cost-cta-background

Do you know how much operational outages are costing you?

Understand the cost to your business and how BugZero can help you reduce those costs.

Discussion

Login to read and write comments.

Have you ever...

had your data corrupted from a

VMware

bug?

Search:

...