Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 93df45c1c49ff85f9f84a69a4a90e50ae180c78a
https://github.com/WebKit/WebKit/commit/93df45c1c49ff85f9f84a69a4a90e50ae180c78a
Author: Sihui Liu <[email protected]>
Date: 2025-03-11 (Tue, 11 Mar 2025)
Changed paths:
M Source/WebCore/Modules/indexeddb/IDBKeyData.cpp
M Source/WebCore/Modules/indexeddb/IDBKeyData.h
M Source/WebCore/Modules/indexeddb/server/IndexValueStore.cpp
M Source/WebKit/Shared/WebCoreArgumentCoders.serialization.in
Log Message:
-----------
Add a validator for IDBKeyData in IPC message
https://bugs.webkit.org/show_bug.cgi?id=289508
rdar://146523477
Reviewed by Per Arne Vollan.
According to spec https://www.w3.org/TR/IndexedDB/#key-construct, a valid key
cannot have NaN as value; so a benign
process should not send message with that and we should message check that.
This patch also contains a drive-by fix that ensures
`IndexValueStore::removeRecord()` validatea iterator before access.
* Source/WebCore/Modules/indexeddb/IDBKeyData.cpp:
(WebCore::IDBKeyData::isValidValue):
* Source/WebCore/Modules/indexeddb/IDBKeyData.h:
* Source/WebCore/Modules/indexeddb/server/IndexValueStore.cpp:
(WebCore::IDBServer::IndexValueStore::removeRecord):
* Source/WebKit/Shared/WebCoreArgumentCoders.serialization.in:
Canonical link: https://commits.webkit.org/291955@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes