[webkit-changes] [WebKit/WebKit] da2348: REGRESSION(276827 at main): Prevent BitmapImageSource...
Said Abou-Hallawa
noreply at github.com
Mon Jul 1 10:00:54 PDT 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: da23487493c641fe1aaa8404321875beae95b65f
https://github.com/WebKit/WebKit/commit/da23487493c641fe1aaa8404321875beae95b65f
Author: Said Abou-Hallawa <said at apple.com>
Date: 2024-07-01 (Mon, 01 Jul 2024)
Changed paths:
M Source/WebCore/platform/graphics/BitmapImageSource.cpp
Log Message:
-----------
REGRESSION(276827 at main): Prevent BitmapImageSource from accessing a null ImageDecoder
https://bugs.webkit.org/show_bug.cgi?id=275999
rdar://129791964
Reviewed by Simon Fraser.
Make BitmapImageSource more robust by checking m_decoder before accessing it.
This was the behavior of the old BitmapImage/ImageSource code.
* Source/WebCore/platform/graphics/BitmapImageSource.cpp:
(WebCore::BitmapImageSource::encodedDataStatusChanged):
(WebCore::BitmapImageSource::cacheMetadataAtIndex):
(WebCore::BitmapImageSource::nativeImageAtIndexCacheIfNeeded):
(WebCore::BitmapImageSource::nativeImageAtIndexRequestIfNeeded):
Canonical link: https://commits.webkit.org/280540@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