Bug 267388 - [GPU Process] Possible null dereferencing when destroying the cached RenderingResources of a WebPage
Summary: [GPU Process] Possible null dereferencing when destroying the cached Renderin...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Said Abou-Hallawa
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2024-01-10 18:04 PST by Said Abou-Hallawa
Modified: 2024-01-11 09:21 PST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Said Abou-Hallawa 2024-01-10 18:04:58 PST
The destructor of WebPage calls RemoteResourceCacheProxy::clearRenderingResourceMap() via other calls. Because RemoteResourceCacheProxy stores the cached RenderingResources in a HashMap of WeakPtrs, we need to ensure the WeakPtr of the RenderingResource is not null before using it.
Comment 1 Said Abou-Hallawa 2024-01-10 18:05:24 PST
rdar://120464355
Comment 2 Said Abou-Hallawa 2024-01-10 18:09:13 PST
Pull request: https://github.com/WebKit/WebKit/pull/22639
Comment 3 EWS 2024-01-11 09:21:15 PST
Committed 272919@main (a71e93715498): <https://commits.webkit.org/272919@main>

Reviewed commits have been landed. Closing PR #22639 and removing active labels.