Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(343)

Issue 306183002: Fixing clusterfuzz issue (Closed)

Created:
6 years, 6 months ago by sugoi1
Modified:
6 years, 6 months ago
CC:
skia-review_googlegroups.com, qiankun
Base URL:
https://skia.googlesource.com/skia.git@master
Visibility:
Public.

Description

Fixing clusterfuzz issue When reading an SkSSE2ProcCoeffXfermode object, fProcSIMD should never be NULL. The reason for this is that it's not possible to create such an object through SkPlatformXfermodeFactory_impl_SSE2(), which is the only function used to create these objects, so if we're reading one, it's clearly invalid. BUG=379181 Committed: http://code.google.com/p/skia/source/detail?r=15000

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -0 lines) Patch
M src/opts/SkXfermode_opts_SSE2.cpp View 1 chunk +1 line, -0 lines 1 comment Download

Messages

Total messages: 7 (0 generated)
sugoi1
6 years, 6 months ago (2014-05-30 17:18:58 UTC) #1
mtklein
lgtm
6 years, 6 months ago (2014-05-30 17:23:22 UTC) #2
sugoi1
The CQ bit was checked by sugoi@chromium.org
6 years, 6 months ago (2014-05-30 17:24:56 UTC) #3
reed1
lgtm
6 years, 6 months ago (2014-05-30 17:26:08 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/sugoi@chromium.org/306183002/1
6 years, 6 months ago (2014-05-30 17:26:26 UTC) #5
commit-bot: I haz the power
Change committed as 15000
6 years, 6 months ago (2014-05-30 17:32:57 UTC) #6
Stephen White
6 years, 6 months ago (2014-06-02 13:13:34 UTC) #7
Message was sent while issue was closed.
https://codereview.chromium.org/306183002/diff/1/src/opts/SkXfermode_opts_SSE...
File src/opts/SkXfermode_opts_SSE2.cpp (right):

https://codereview.chromium.org/306183002/diff/1/src/opts/SkXfermode_opts_SSE...
src/opts/SkXfermode_opts_SSE2.cpp:647: buffer.validate(fProcSIMD != NULL);
Not new to this patch, but I wonder why we have such processor-specific
subclasses at all. Shouldn't the SKP format be processor-indepdendent? I.e.,
shouldn't we serialize generic implementations, and have the processing code
initialize callbacks for the platform it's running on?

Powered by Google App Engine
This is Rietveld 408576698