Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 51448cf8aa9525ff45b74e8d8e450351e8602905
https://github.com/WebKit/WebKit/commit/51448cf8aa9525ff45b74e8d8e450351e8602905
Author: David Kilzer <[email protected]>
Date: 2026-04-07 (Tue, 07 Apr 2026)
Changed paths:
M Source/WebCore/Modules/indexeddb/server/MemoryIndex.cpp
Log Message:
-----------
Add nullptr checks for m_objectStore.get() in WebCore::IDBServer::MemoryIndex
<https://bugs.webkit.org/show_bug.cgi?id=311611>
<rdar://174209893>
Reviewed by Geoffrey Garen.
`m_objectStore` is a `WeakPtr<MemoryObjectStore>`. If the object store
is deallocated, `WeakPtr::get()` returns nullptr. Add nullptr checks to
`getResultForKeyRange()` and `getAllRecords()` to prevent crashes.
Unable to create a test case.
* Source/WebCore/Modules/indexeddb/server/MemoryIndex.cpp:
(WebCore::IDBServer::MemoryIndex::getResultForKeyRange):
(WebCore::IDBServer::MemoryIndex::getAllRecords):
Canonical link: https://commits.webkit.org/310716@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications