-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: 4.5.1
-
Component/s: Sharding
-
Fully Compatible
-
ALL
-
Sharding 2020-08-10
-
43
Cache loader access un-owned variable causing use-after-free memory access error.
These are the two different places that implement this wrong pattern:
StringData object wraps a 'const std::string&' or a 'const char*' without copying its contents. Thus keeping alive the StringData object itself doesn't guarantee that the underlying char array won't be freed. For this reason when capturing such an object in an async task an explicit copy of the underlying data needs to be performed.
- is caused by
-
SERVER-49292 Futurify CatalogCacheLoader API
- Closed