Bug 257982

Summary: REGRESSION(262585@main): Potential null dereference of cached images in MemoryCache::destroyDecodedDataForAllImages()
Product: WebKit Reporter: Said Abou-Hallawa <sabouhallawa>
Component: ImagesAssignee: Said Abou-Hallawa <sabouhallawa>
Status: RESOLVED FIXED    
Severity: Normal CC: sabouhallawa, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=257968

Said Abou-Hallawa
Reported 2023-06-12 14:57:43 PDT
When the WebProcess cleanup timer fires, MemoryCache may try to release the decoded data of an already deleted CachedImage. MemoryCache stores the list of cached resources as WeakPtrs. So we need to null check these WeakPtrs in forEachResource() before using them.
Attachments
Said Abou-Hallawa
Comment 1 2023-06-12 14:58:13 PDT
Said Abou-Hallawa
Comment 2 2023-06-12 15:31:14 PDT
EWS
Comment 3 2023-06-12 17:12:23 PDT
Committed 265093@main (1fc9a2418bc9): <https://commits.webkit.org/265093@main> Reviewed commits have been landed. Closing PR #14890 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.