Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: d2ef3504e98a80fe1b94576d8f9f8d39d75b6753
https://github.com/WebKit/WebKit/commit/d2ef3504e98a80fe1b94576d8f9f8d39d75b6753
Author: Sihui Liu <[email protected]>
Date: 2026-04-13 (Mon, 13 Apr 2026)
Changed paths:
M Source/WebCore/Modules/indexeddb/server/MemoryBackingStoreTransaction.cpp
M Source/WebCore/Modules/indexeddb/server/MemoryBackingStoreTransaction.h
Log Message:
-----------
Use WeakRef instead of raw pointer for
MemoryBackingStoreTransaction::m_originalObjectStoreNames
https://bugs.webkit.org/show_bug.cgi?id=311880
rdar://174449757
Reviewed by Ryosuke Niwa and Chris Dumez.
HashMap<MemoryObjectStore*, String> m_originalObjectStoreNames currently uses a
raw pointer as key; replace it with
WeakHashMap to avoid potential use-after-free.
* Source/WebCore/Modules/indexeddb/server/MemoryBackingStoreTransaction.cpp:
(WebCore::IDBServer::MemoryBackingStoreTransaction::objectStoreDeleted):
(WebCore::IDBServer::MemoryBackingStoreTransaction::objectStoreRenamed):
(WebCore::IDBServer::MemoryBackingStoreTransaction::abort):
* Source/WebCore/Modules/indexeddb/server/MemoryBackingStoreTransaction.h:
Canonical link: https://commits.webkit.org/311121@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications