Merge pull request #8406 from sfc-gh-yiwu/encrypt_asan
Fix heap-use-after-free in TenantAwareEncryptionKeyProvider
This commit is contained in:
commit
14107b315d
|
@ -384,7 +384,7 @@ private:
|
|||
return FDB_DEFAULT_ENCRYPT_DOMAIN_NAME;
|
||||
}
|
||||
if (tenantPrefixIndex.isValid()) {
|
||||
StringRef prefix = TenantMapEntry::idToPrefix(domainId);
|
||||
Key prefix(TenantMapEntry::idToPrefix(domainId));
|
||||
auto view = tenantPrefixIndex->atLatest();
|
||||
auto itr = view.find(prefix);
|
||||
if (itr != view.end()) {
|
||||
|
|
Loading…
Reference in New Issue