[webkit-changes] [WebKit/WebKit] bac31e: Null pointer dereference in WebCore::ImageDocument...
lericaa
noreply at github.com
Thu Feb 29 22:02:31 PST 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: bac31e80659aa2caacbacfbba84a4053e322ed6f
https://github.com/WebKit/WebKit/commit/bac31e80659aa2caacbacfbba84a4053e322ed6f
Author: Erica Li <lerica at apple.com>
Date: 2024-02-29 (Thu, 29 Feb 2024)
Changed paths:
A LayoutTests/fast/images/imageDocument-appendBytes-crash-expected.txt
A LayoutTests/fast/images/imageDocument-appendBytes-crash.html
M Source/WebCore/html/ImageDocument.cpp
Log Message:
-----------
Null pointer dereference in WebCore::ImageDocument::createDocumentStructure.
https://bugs.webkit.org/show_bug.cgi?id=270283.
rdar://122779661.
Reviewed by Chris Dumez.
Adding null check to prevent the cases where local frame would be detached during createDocumentStructure.
* LayoutTests/fast/images/imageDocument-appendBytes-crash-expected.txt: Added.
* LayoutTests/fast/images/imageDocument-appendBytes-crash.html: Added.
* Source/WebCore/html/ImageDocument.cpp:
(WebCore::ImageDocument::updateDuringParsing):
(WebCore::ImageDocument::createDocumentStructure):
Canonical link: https://commits.webkit.org/275537@main
To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications
More information about the webkit-changes
mailing list