RESOLVED FIXED 20457
Canvas: createPattern crashes WebKit with a 1D pattern
https://bugs.webkit.org/show_bug.cgi?id=20457
Summary Canvas: createPattern crashes WebKit with a 1D pattern
Dirk Schulze
Reported 2008-08-20 06:01:50 PDT
If you create a 1 dimensional (width==0 || height==0) Pattern in Canvas, WebKit will crash.
Attachments
Patch (3.80 KB, patch)
2008-09-15 02:47 PDT, Anders Carlsson
mjs: review+
Alexey Proskuryakov
Comment 1 2008-08-20 06:33:06 PDT
Reproducible crash -> P1. Thread 0 Crashed: 0 com.apple.WebCore 0x0322d99d WTF::RefPtr<WebCore::Image>::operator!() const + 9 (RefPtr.h:63) 1 com.apple.WebCore 0x034aaa81 WebCore::ImageBuffer::image() const + 27 (ImageBufferCG.cpp:99) 2 com.apple.WebCore 0x032340f7 WebCore::CanvasRenderingContext2D::createPattern(WebCore::HTMLCanvasElement*, WebCore::String const&, int&) + 135 (CanvasRenderingContext2D.cpp:1154) 3 com.apple.WebCore 0x034f431d WebCore::JSCanvasRenderingContext2D::createPattern(KJS::ExecState*, KJS::ArgList const&) + 545 (JSCanvasRenderingContext2DCustom.cpp:328) 4 com.apple.WebCore 0x034eff04 WebCore::jsCanvasRenderingContext2DPrototypeFunctionCreatePattern(KJS::ExecState*, KJS::JSObject*, KJS::JSValue*, KJS::ArgList const&) + 96 (JSCanvasRenderingContext2D.cpp:780)
Mark Rowe (bdash)
Comment 2 2008-08-20 15:07:44 PDT
Anders Carlsson
Comment 3 2008-09-15 02:47:53 PDT
Maciej Stachowiak
Comment 4 2008-09-15 02:49:24 PDT
Comment on attachment 23434 [details] Patch r=me
Anders Carlsson
Comment 5 2008-09-15 04:36:15 PDT
Committed revision 36442.
Note You need to log in before you can comment on or make changes to this bug.