Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cherry-pick 259548.186@safari-7615-branch (1aa5ac3). rdar://107561498
Use WeakPtr to track resources in SubresourceLoader https://bugs.webkit.org/show_bug.cgi?id=252200 rdar://104908871 Reviewed by Chris Dumez. CachedResource can get deallocated when the SubresourceLoader releases its resources, in which case we'd be accessing a dangling pointer. This change adopts WeakPtr for CachedResource so that we don't have a UAF. * Source/WebCore/loader/SubresourceLoader.cpp: (WebCore::SubresourceLoader::didFinishLoading): (WebCore::SubresourceLoader::didFail): * Source/WebCore/loader/SubresourceLoader.h: * Source/WebCore/loader/cache/CachedResource.h: * Source/WebCore/loader/cache/CachedResourceLoader.h: Canonical link: https://commits.webkit.org/259548.186@safari-7615-branch Canonical link: https://commits.webkit.org/262538@main
- Loading branch information
Showing
3 changed files
with
8 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters