[Webkit-unassigned] [Bug 42081] [CAIRO]GtkLauncher crashes when loading LayoutTest text-shadow-extreme-value.html

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jul 12 08:31:55 PDT 2010


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





--- Comment #1 from Mihnea Ovidenie <mihnea at adobe.com>  2010-07-12 08:31:55 PST ---
Debugging a little, i have found that the allocation of m_effectBuffer in FilterEffect::getEffectContext() fails. In the first place, i have thought that the fix for the problem is to add a null check in this function, but then i have realized that the problem appears because in function GraphicsContext::calculateShadowBufferDimensions the kernel size is not limitted at all. The LayoutTest uses a blurRadius = 38005685px, which gives a very bug kernel that is not limitted to 1000 as in GraphicsContext::createPlatformShadow (both from GraphicsContextCairo.cpp). 

* I think the fix should be to limit the kernel size in calculateShadowBufferDimensions the same way it is done in createPlatformShadow

* Taking a look at GraphicsContext::setPlatformShadow() from GraphicsContextCG.cpp, i can see that the blurRadius is clamped to 1000, not the kernel, which in the case of Cairo port (Win/Gtk) is computed to be sqrt(2*blurRadius). Am i missing something here? 

Regards,
Mihnea Ovidenie

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list