WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
150108
Change GraphicsContext image-drawing functions to take references
https://bugs.webkit.org/show_bug.cgi?id=150108
Summary
Change GraphicsContext image-drawing functions to take references
Simon Fraser (smfr)
Reported
2015-10-13 16:59:16 PDT
Change GraphicsContext image-drawing functions to take references
Attachments
Patch
(92.94 KB, patch)
2015-10-13 17:00 PDT
,
Simon Fraser (smfr)
no flags
Details
Formatted Diff
Diff
Patch
(96.83 KB, patch)
2015-10-13 18:11 PDT
,
Simon Fraser (smfr)
no flags
Details
Formatted Diff
Diff
Patch
(98.03 KB, patch)
2015-10-13 18:43 PDT
,
Simon Fraser (smfr)
no flags
Details
Formatted Diff
Diff
Patch
(94.78 KB, patch)
2015-10-13 20:07 PDT
,
Simon Fraser (smfr)
no flags
Details
Formatted Diff
Diff
Patch
(99.80 KB, patch)
2015-10-13 20:48 PDT
,
Simon Fraser (smfr)
no flags
Details
Formatted Diff
Diff
Patch
(100.57 KB, patch)
2015-10-14 08:43 PDT
,
Simon Fraser (smfr)
sam
: review+
Details
Formatted Diff
Diff
Show Obsolete
(5)
View All
Add attachment
proposed patch, testcase, etc.
Simon Fraser (smfr)
Comment 1
2015-10-13 17:00:54 PDT
Created
attachment 263038
[details]
Patch
Tim Horton
Comment 2
2015-10-13 17:09:19 PDT
Comment on
attachment 263038
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=263038&action=review
> Source/WebCore/platform/graphics/filters/FEBlend.cpp:76 > + if (!imageBuffer || !imageBuffer2) > + return;
Please make sure this doesn't cause us to end up with uninitialized data in a filter buffer.
> Source/WebCore/platform/graphics/filters/FEColorMatrix.cpp:151 > + if (inBuffer)
As above. I really think crashing might be better in some of these cases.
> Source/WebCore/platform/graphics/filters/FEMerge.cpp:54 > + if (ImageBuffer* inBuffer = in->asImageBuffer())
Ditto.
> Source/WebCore/platform/graphics/filters/FEOffset.cpp:83 > + if (!resultImage || !inBuffer)
Ditto.
> Source/WebCore/platform/graphics/filters/FETile.cpp:51 > + if (!resultImage || !inBuffer)
Ditto.
> Source/WebCore/platform/graphics/filters/SourceAlpha.cpp:57 > + if (!imageBuffer)
Ditto.
> Source/WebCore/platform/graphics/filters/SourceGraphic.cpp:56 > + if (!resultImage || !sourceImage)
Ditto maybe?
> Source/WebCore/rendering/FilterEffectRenderer.cpp:432 > + if (ImageBuffer* outputBuffer = filter->output()) {
I'm going to stop dittoing now.
Simon Fraser (smfr)
Comment 3
2015-10-13 17:48:49 PDT
I simulated failure in some of the FE* cases and got blank, not garbage pixels.
Simon Fraser (smfr)
Comment 4
2015-10-13 18:11:47 PDT
Created
attachment 263046
[details]
Patch
Tim Horton
Comment 5
2015-10-13 18:38:57 PDT
Comment on
attachment 263046
[details]
Patch EWS is still not happy.
Simon Fraser (smfr)
Comment 6
2015-10-13 18:43:58 PDT
Created
attachment 263050
[details]
Patch
Simon Fraser (smfr)
Comment 7
2015-10-13 20:07:57 PDT
Created
attachment 263051
[details]
Patch
Simon Fraser (smfr)
Comment 8
2015-10-13 20:48:29 PDT
Created
attachment 263053
[details]
Patch
Simon Fraser (smfr)
Comment 9
2015-10-14 08:43:12 PDT
Created
attachment 263078
[details]
Patch
Simon Fraser (smfr)
Comment 10
2015-10-14 11:11:27 PDT
https://trac.webkit.org/r191049
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug