Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 09650e2c7ec554a9d237833fa832bb0478684aa0
https://github.com/WebKit/WebKit/commit/09650e2c7ec554a9d237833fa832bb0478684aa0
Author: Chris Dumez <[email protected]>
Date: 2026-06-03 (Wed, 03 Jun 2026)
Changed paths:
M Source/WebCore/Modules/cache/CacheStorageConnection.cpp
Log Message:
-----------
Fix undefined behavior in CacheStorageConnection::computeRecordBodySize()
https://bugs.webkit.org/show_bug.cgi?id=316150
Reviewed by Youenn Fablet.
The set() inside the ensure() lambda mutates the map mid-insert. This
can rehash and invalidate the iterator that ensure() then returns, so
the trailing .iterator->value reads from a stale bucket. It's also
redundant — ensure() stores the lambda's return value already.
* Source/WebCore/Modules/cache/CacheStorageConnection.cpp:
(WebCore::CacheStorageConnection::computeRecordBodySize):
Canonical link: https://commits.webkit.org/314445@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications