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

Issue 1589533002: Fix fuzzer-found deserialization bugs (Closed)

Created:
4 years, 11 months ago by ajuma
Modified:
4 years, 11 months ago
Reviewers:
sugoi1, Stephen White, reed1
CC:
reviews_skia.org
Base URL:
https://chromium.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Fix fuzzer-found deserialization bugs This fixes deserialization bugs found by fuzzing SkPaintImageFilter. BUG=576908, 576910 GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1589533002 Committed: https://skia.googlesource.com/skia/+/f8aec588bfd2df17130ee93593a8f4ae781afe1f

Patch Set 1 #

Patch Set 2 : Also prevent overflow in SkBufferWithSizeCheck::read #

Total comments: 3

Patch Set 3 : #

Total comments: 4

Patch Set 4 : Remove unreachable code #

Patch Set 5 : Fix build error by using explicit cast #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -13 lines) Patch
M src/core/SkBuffer.cpp View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M src/core/SkPaint.cpp View 1 chunk +3 lines, -0 lines 0 comments Download
M src/core/SkPath.cpp View 1 2 3 2 chunks +8 lines, -11 lines 0 comments Download
M src/core/SkPathRef.cpp View 1 chunk +4 lines, -1 line 0 comments Download

Messages

Total messages: 24 (10 generated)
ajuma
4 years, 11 months ago (2016-01-13 18:23:30 UTC) #5
Stephen White
These look ok to me, but reed@ might want to take a look.
4 years, 11 months ago (2016-01-13 19:04:54 UTC) #7
reed1
https://codereview.chromium.org/1589533002/diff/20001/src/core/SkPath.cpp File src/core/SkPath.cpp (right): https://codereview.chromium.org/1589533002/diff/20001/src/core/SkPath.cpp#newcode1910 src/core/SkPath.cpp:1910: fIsVolatile = (packed >> kIsVolatile_SerializationShift) & 0x1; unrelated: this ...
4 years, 11 months ago (2016-01-13 19:20:05 UTC) #8
ajuma
https://codereview.chromium.org/1589533002/diff/20001/src/core/SkPath.cpp File src/core/SkPath.cpp (right): https://codereview.chromium.org/1589533002/diff/20001/src/core/SkPath.cpp#newcode1933 src/core/SkPath.cpp:1933: if (buffer.isValid() && pathRef) { On 2016/01/13 19:20:05, reed1 ...
4 years, 11 months ago (2016-01-13 20:08:15 UTC) #9
reed1
On 2016/01/13 20:08:15, ajuma wrote: > https://codereview.chromium.org/1589533002/diff/20001/src/core/SkPath.cpp > File src/core/SkPath.cpp (right): > > https://codereview.chromium.org/1589533002/diff/20001/src/core/SkPath.cpp#newcode1933 > ...
4 years, 11 months ago (2016-01-13 20:25:34 UTC) #10
reed1
https://codereview.chromium.org/1589533002/diff/40001/src/core/SkPath.cpp File src/core/SkPath.cpp (right): https://codereview.chromium.org/1589533002/diff/40001/src/core/SkPath.cpp#newcode1917 src/core/SkPath.cpp:1917: // If the buffer is not valid, pathRef should ...
4 years, 11 months ago (2016-01-13 20:27:11 UTC) #11
ajuma
https://codereview.chromium.org/1589533002/diff/40001/src/core/SkPath.cpp File src/core/SkPath.cpp (right): https://codereview.chromium.org/1589533002/diff/40001/src/core/SkPath.cpp#newcode1917 src/core/SkPath.cpp:1917: // If the buffer is not valid, pathRef should ...
4 years, 11 months ago (2016-01-13 20:47:54 UTC) #12
reed1
https://codereview.chromium.org/1589533002/diff/40001/src/core/SkPath.cpp File src/core/SkPath.cpp (right): https://codereview.chromium.org/1589533002/diff/40001/src/core/SkPath.cpp#newcode1917 src/core/SkPath.cpp:1917: // If the buffer is not valid, pathRef should ...
4 years, 11 months ago (2016-01-13 21:05:47 UTC) #13
ajuma
https://codereview.chromium.org/1589533002/diff/40001/src/core/SkPath.cpp File src/core/SkPath.cpp (right): https://codereview.chromium.org/1589533002/diff/40001/src/core/SkPath.cpp#newcode1917 src/core/SkPath.cpp:1917: // If the buffer is not valid, pathRef should ...
4 years, 11 months ago (2016-01-13 21:11:41 UTC) #14
reed1
thanks. lgtm
4 years, 11 months ago (2016-01-13 21:14:06 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1589533002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1589533002/60001
4 years, 11 months ago (2016-01-13 21:16:31 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: Build-Mac10.8-Clang-x86_64-Release-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Mac10.8-Clang-x86_64-Release-Trybot/builds/7656)
4 years, 11 months ago (2016-01-13 21:17:41 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1589533002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1589533002/80001
4 years, 11 months ago (2016-01-13 21:32:15 UTC) #22
commit-bot: I haz the power
4 years, 11 months ago (2016-01-13 21:46:35 UTC) #24
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://skia.googlesource.com/skia/+/f8aec588bfd2df17130ee93593a8f4ae781afe1f

Powered by Google App Engine
This is Rietveld 408576698