[Webkit-unassigned] [Bug 219651] New: REGRESSION(r254841): Possible null pointer reference in BitmapImage::preTransformedNativeImageForCurrentFrame()

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Dec 8 12:31:45 PST 2020


https://bugs.webkit.org/show_bug.cgi?id=219651

            Bug ID: 219651
           Summary: REGRESSION(r254841): Possible null pointer reference
                    in
                    BitmapImage::preTransformedNativeImageForCurrentFrame(
                    )
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Images
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: sabouhallawa at apple.com

This function was added in r254841 under the name BitmapImage::nativeImageForCurrentFrameRespectingOrientation() without checking whether the resulted image of nativeImageForCurrentFrame() is null or not. If the ImageSource is corrupted, the decoder might return a null PlatformImagePtr for the current frame. And if this happens most likely ImageSource::densityCorrectedSize() will return WTF::nullopt also. In this case, we end up calling GraphicsContext::drawPlatformImage() with a null PlatformImagePtr.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20201208/11798caf/attachment-0001.htm>


More information about the webkit-unassigned mailing list