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

Issue 106943002: Fixed a few places where uninitialized memory could have been read (Closed)

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

Description

Fixed a few places where uninitialized memory could have been read Also added early exit in SkImageFilter's constructor to avoid attempting to deserialize all inputs once a bad input has been found. This avoids hanging if a filter pretends to have 1 billion inputs when that's just an error on the number of inputs read by the filter. BUG=326206, 326197, 326229 Committed: http://code.google.com/p/skia/source/detail?r=12544

Patch Set 1 #

Total comments: 9

Patch Set 2 : Removed unnecessary changes to SkMatrixConvolutionImageFilter #

Patch Set 3 : Added the isValid function #

Patch Set 4 : Added missing change in SkColorFilters #

Total comments: 8

Patch Set 5 : Removed bad scalar checks in SkColorMatrixFilter.cpp #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -18 lines) Patch
M include/core/SkFlattenableBuffers.h View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download
M samplecode/SampleFilterFuzz.cpp View 1 chunk +3 lines, -0 lines 0 comments Download
M src/core/SkBitmap.cpp View 1 2 3 4 1 chunk +5 lines, -2 lines 0 comments Download
M src/core/SkImageFilter.cpp View 1 2 3 4 1 chunk +5 lines, -1 line 0 comments Download
M src/core/SkValidatingReadBuffer.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M src/core/SkValidatingReadBuffer.cpp View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M src/effects/SkColorFilters.cpp View 1 2 3 1 chunk +4 lines, -2 lines 0 comments Download
M src/effects/SkColorMatrixFilter.cpp View 1 2 3 4 1 chunk +2 lines, -4 lines 1 comment Download
M src/effects/SkMergeImageFilter.cpp View 1 chunk +4 lines, -3 lines 0 comments Download
M src/effects/SkTileImageFilter.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M tests/SerializationTest.cpp View 1 2 3 4 4 chunks +5 lines, -5 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
sugoi1
https://codereview.chromium.org/106943002/diff/1/samplecode/SampleFilterFuzz.cpp File samplecode/SampleFilterFuzz.cpp (right): https://codereview.chromium.org/106943002/diff/1/samplecode/SampleFilterFuzz.cpp#newcode35 samplecode/SampleFilterFuzz.cpp:35: //#define SK_FUZZER_IS_VERBOSE I got tired of always writing these, ...
7 years ago (2013-12-05 18:45:47 UTC) #1
Stephen White
https://codereview.chromium.org/106943002/diff/1/src/core/SkBitmap.cpp File src/core/SkBitmap.cpp (right): https://codereview.chromium.org/106943002/diff/1/src/core/SkBitmap.cpp#newcode1562 src/core/SkBitmap.cpp:1562: buffer.validate(this->setConfig(config, width, height, rowBytes, alphaType)); Nit: this might be ...
7 years ago (2013-12-05 20:48:22 UTC) #2
sugoi1
7 years ago (2013-12-05 21:02:15 UTC) #3
reed1
https://codereview.chromium.org/106943002/diff/60001/include/core/SkFlattenableBuffers.h File include/core/SkFlattenableBuffers.h (right): https://codereview.chromium.org/106943002/diff/60001/include/core/SkFlattenableBuffers.h#newcode156 include/core/SkFlattenableBuffers.h:156: virtual bool isValid() const { return true; } Please ...
7 years ago (2013-12-05 21:35:22 UTC) #4
sugoi
https://codereview.chromium.org/106943002/diff/60001/samplecode/SampleFilterFuzz.cpp File samplecode/SampleFilterFuzz.cpp (right): https://codereview.chromium.org/106943002/diff/60001/samplecode/SampleFilterFuzz.cpp#newcode34 samplecode/SampleFilterFuzz.cpp:34: //#define SK_ADD_RANDOM_BIT_FLIPS On 2013/12/05 21:35:23, reed1 wrote: > Can ...
7 years ago (2013-12-05 23:27:49 UTC) #5
reed1
On 2013/12/05 23:27:49, sugoi wrote: > https://codereview.chromium.org/106943002/diff/60001/samplecode/SampleFilterFuzz.cpp > File samplecode/SampleFilterFuzz.cpp (right): > > https://codereview.chromium.org/106943002/diff/60001/samplecode/SampleFilterFuzz.cpp#newcode34 > ...
7 years ago (2013-12-06 14:16:29 UTC) #6
sugoi1
https://codereview.chromium.org/106943002/diff/60001/include/core/SkFlattenableBuffers.h File include/core/SkFlattenableBuffers.h (right): https://codereview.chromium.org/106943002/diff/60001/include/core/SkFlattenableBuffers.h#newcode156 include/core/SkFlattenableBuffers.h:156: virtual bool isValid() const { return true; } On ...
7 years ago (2013-12-06 18:39:04 UTC) #7
reed1
lgtm
7 years ago (2013-12-06 19:09:29 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/sugoi@chromium.org/106943002/80001
7 years ago (2013-12-06 19:14:59 UTC) #9
commit-bot: I haz the power
7 years ago (2013-12-06 20:14:50 UTC) #10
Message was sent while issue was closed.
Change committed as 12544

Powered by Google App Engine
This is Rietveld 408576698