[Webkit-unassigned] [Bug 273098] New: Clearing BitmapImage decoded frames should should not overflow

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Apr 22 18:21:35 PDT 2024


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

            Bug ID: 273098
           Summary: Clearing BitmapImage decoded frames should should not
                    overflow
           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
                CC: sabouhallawa at apple.com

If loading an image fails, most likely no frames have beed decoded yet. But querying the ImageDecoder for frameCount may succeed because the frameCount metadata is usually is in the first few bytes of the encoded data. So when destroying the decoded frames, we should loop through the frames Vector only and do not assume its size is be the same as the frameCount.

-- 
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/20240423/bf47f13e/attachment.htm>


More information about the webkit-unassigned mailing list