[Webkit-unassigned] [Bug 279478] New: Make FontProxy RefCounted

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Sep 10 16:53:37 PDT 2024


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

            Bug ID: 279478
           Summary: Make FontProxy RefCounted
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Canvas
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: sabouhallawa at apple.com
                CC: sabouhallawa at apple.com

CanvasRenderingContext2DBase::drawTextUnchecked() gets a reference to state().fontProxy. If before using this reference, this function changes m_stateStack by calling save() or restore() this reference may be pointing to freed memory. This will happen when Vector::append reallocates the buffer of m_stateStack. Applying filter to the canvas requires save() and restore() to be called when switching the context target.

-- 
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/20240910/5fedc4d9/attachment.htm>


More information about the webkit-unassigned mailing list