Details
-
Bug
-
Resolution: Won't Fix
-
Major - P3
-
None
-
None
-
Fully Compatible
-
ALL
Description
An internal pointer of a wrapper object remains available after the object is freed
Defect 76790 (STATIC_C)
Checker WRAPPER_ESCAPE (subcategory none)
File: /src/mongo/db/repl/sync_tail.cpp
Function mongo::repl::multiSyncApply(const std::vector<mongo::BSONObj, std::allocator<mongo::BSONObj>> &, mongo::repl::SyncTail *)
/src/mongo/db/repl/sync_tail.cpp, line: 1014
The internal representation of local "oplogEntries" escapes into "oplogEntryPointers[i]", but is destroyed when it exits scope.
oplogEntryPointers[i] = &oplogEntries[i];
|