NEW 279478
Make FontProxy RefCounted
https://bugs.webkit.org/show_bug.cgi?id=279478
Summary Make FontProxy RefCounted
Said Abou-Hallawa
Reported 2024-09-10 16:53:37 PDT
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.
Attachments
Radar WebKit Bug Importer
Comment 1 2024-09-17 16:54:15 PDT
Said Abou-Hallawa
Comment 2 2024-10-22 09:16:13 PDT
When fixing this bug, please remove the FIXME comment in CanvasRenderingContext2DBase::drawTextUnchecked() and change the code such that it does not refetch the FontProxy after calling CanvasFilterContextSwitcher::create().
Note You need to log in before you can comment on or make changes to this bug.