Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: d4eab751dd9fff1730f911f3a0c271e8768bb5b9
https://github.com/WebKit/WebKit/commit/d4eab751dd9fff1730f911f3a0c271e8768bb5b9
Author: Ahmad Saleem <[email protected]>
Date: 2026-07-20 (Mon, 20 Jul 2026)
Changed paths:
M Source/WebCore/platform/graphics/cocoa/ShareableGainMap.cpp
Log Message:
-----------
ShareableGainMap::applyGainMapToBaseImage passes a null value to a
kCFTypeDictionaryValueCallBacks dictionary
https://bugs.webkit.org/show_bug.cgi?id=319806
rdar://182690269
Reviewed by Dan Glastonbury.
applyGainMapOptions is created with kCFTypeDictionaryValueCallBacks,
whose retain/release callbacks are CFRetain/CFRelease. When
m_colorSpace was empty, CFDictionarySetValue() was called with a
null value for kCGImageAuxiliaryDataInfoColorSpace, causing
CFDictionarySetValue() to invoke CFRetain(NULL), which is invalid.
Only set the key when m_colorSpace is present.
* Source/WebCore/platform/graphics/cocoa/ShareableGainMap.cpp:
(WebCore::ShareableGainMap::applyGainMapToBaseImage const):
Canonical link: https://commits.webkit.org/317596@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications