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

Issue 83343003: Adding more validation (Closed)

Created:
7 years, 1 month ago by sugoi1
Modified:
7 years ago
CC:
skia-review_googlegroups.com
Visibility:
Public.

Description

Adding more validation - Added a way to check that the number of inputs of a filter is not more than a filter expects - Added validation of reftype in SkBitmap::unflatten() - Added validation on fKD (diffuse lighting constant) and fKS (specular lighting constant) to make sure that they are always non-negative numbers - Added validation of SkPerlinNoiseShader::fType and SkPerlinNoiseShader::fNumOctaves BUG= Committed: http://code.google.com/p/skia/source/detail?r=12388

Patch Set 1 #

Total comments: 2

Patch Set 2 : 1st upload seems to have failed, trying again #

Patch Set 3 : Attempting to upload yet again #

Total comments: 2

Patch Set 4 : Replaced entries with numbers #

Patch Set 5 : Minor fixes #

Total comments: 4

Patch Set 6 : Fixed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+85 lines, -52 lines) Patch
M gm/imagefiltersbase.cpp View 1 2 3 2 chunks +4 lines, -2 lines 0 comments Download
M gm/imagefiltersgraph.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M include/core/SkImageFilter.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/core/SkBitmap.cpp View 1 chunk +14 lines, -12 lines 0 comments Download
M src/core/SkImageFilter.cpp View 1 2 3 1 chunk +19 lines, -12 lines 0 comments Download
M src/effects/SkBicubicImageFilter.cpp View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M src/effects/SkBitmapSource.cpp View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M src/effects/SkBlurImageFilter.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/effects/SkColorFilterImageFilter.cpp View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M src/effects/SkComposeImageFilter.cpp View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M src/effects/SkDisplacementMapEffect.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/effects/SkDropShadowImageFilter.cpp View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M src/effects/SkLightingImageFilter.cpp View 1 2 3 5 chunks +9 lines, -5 lines 0 comments Download
M src/effects/SkMagnifierImageFilter.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/effects/SkMatrixConvolutionImageFilter.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/effects/SkMergeImageFilter.cpp View 1 2 3 3 chunks +6 lines, -1 line 0 comments Download
M src/effects/SkMorphologyImageFilter.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/effects/SkOffsetImageFilter.cpp View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M src/effects/SkPerlinNoiseShader.cpp View 1 2 3 4 5 3 chunks +8 lines, -1 line 0 comments Download
M src/effects/SkRectShaderImageFilter.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/effects/SkTestImageFilters.cpp View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M src/effects/SkTileImageFilter.cpp View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M src/effects/SkXfermodeImageFilter.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 17 (0 generated)
sugoi1
7 years, 1 month ago (2013-11-22 19:57:34 UTC) #1
reed1
7 years, 1 month ago (2013-11-22 20:01:27 UTC) #2
reed1
https://codereview.chromium.org/83343003/diff/1/include/core/SkImageFilter.h File include/core/SkImageFilter.h (right): https://codereview.chromium.org/83343003/diff/1/include/core/SkImageFilter.h#newcode149 include/core/SkImageFilter.h:149: Don't some filters have 0 inputs? Not sure why ...
7 years, 1 month ago (2013-11-22 20:04:57 UTC) #3
sugoi1
https://codereview.chromium.org/83343003/diff/1/include/core/SkImageFilter.h File include/core/SkImageFilter.h (right): https://codereview.chromium.org/83343003/diff/1/include/core/SkImageFilter.h#newcode149 include/core/SkImageFilter.h:149: On 2013/11/22 20:04:58, reed1 wrote: > Don't some filters ...
7 years, 1 month ago (2013-11-22 20:15:52 UTC) #4
reed1
I mean to ask, why not pass 1, 2 etc. instead of kOne, kTwo, etc. ...
7 years, 1 month ago (2013-11-22 20:28:46 UTC) #5
Stephen White
On 2013/11/22 20:28:46, reed1 wrote: > I mean to ask, why not pass 1, 2 ...
7 years, 1 month ago (2013-11-22 20:52:11 UTC) #6
Stephen White
https://codereview.chromium.org/83343003/diff/230001/src/effects/SkBitmapSource.cpp File src/effects/SkBitmapSource.cpp (right): https://codereview.chromium.org/83343003/diff/230001/src/effects/SkBitmapSource.cpp#newcode16 src/effects/SkBitmapSource.cpp:16: This should probably zero inputs. In fact, the regular ...
7 years, 1 month ago (2013-11-22 21:00:17 UTC) #7
sugoi
Fixed comments
7 years ago (2013-11-25 15:53:12 UTC) #8
Stephen White
https://codereview.chromium.org/83343003/diff/410001/src/effects/SkBitmapSource.cpp File src/effects/SkBitmapSource.cpp (right): https://codereview.chromium.org/83343003/diff/410001/src/effects/SkBitmapSource.cpp#newcode16 src/effects/SkBitmapSource.cpp:16: : INHERITED(1, buffer) { I'm pretty sure this should ...
7 years ago (2013-11-25 16:11:21 UTC) #9
sugoi
https://codereview.chromium.org/83343003/diff/410001/src/effects/SkBitmapSource.cpp File src/effects/SkBitmapSource.cpp (right): https://codereview.chromium.org/83343003/diff/410001/src/effects/SkBitmapSource.cpp#newcode16 src/effects/SkBitmapSource.cpp:16: : INHERITED(1, buffer) { On 2013/11/25 16:11:21, Stephen White ...
7 years ago (2013-11-25 16:20:32 UTC) #10
Stephen White
LGTM
7 years ago (2013-11-25 16:32:58 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/sugoi@chromium.org/83343003/430001
7 years ago (2013-11-25 16:35:22 UTC) #12
commit-bot: I haz the power
Presubmit check for 83343003-430001 failed and returned exit status 1. Running presubmit commit checks ...
7 years ago (2013-11-25 16:35:33 UTC) #13
reed1
lgtm
7 years ago (2013-11-25 20:49:45 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/sugoi@chromium.org/83343003/430001
7 years ago (2013-11-25 20:50:19 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/sugoi@chromium.org/83343003/430001
7 years ago (2013-11-25 21:06:25 UTC) #16
commit-bot: I haz the power
7 years ago (2013-11-25 21:46:56 UTC) #17
Message was sent while issue was closed.
Change committed as 12388

Powered by Google App Engine
This is Rietveld 408576698