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

Issue 1591073002: Add ability to fuzz images and skps to fuzz binary (Closed)

Created:
4 years, 11 months ago by kjlubick
Modified:
4 years, 11 months ago
Reviewers:
scroggo, mtklein
CC:
jcgregorio, reviews_skia.org, scroggo
Base URL:
https://skia.googlesource.com/skia@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Seperating our fuzzing binary from DM produces a 50x speed increase for decoding images and a 10x speed increase in decoding/rendering Skps. This also lets us differentiate between the decoding of Skps and the rendering of them, the latter of which may be more interesting for bugs. BUG=skia:4800 GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1591073002 Committed: https://skia.googlesource.com/skia/+/dba57344090631bba798e64e78f776bf6afba89c

Patch Set 1 #

Patch Set 2 : Fixed linking issue #

Patch Set 3 : Moved all fuzzes into one #

Total comments: 13

Patch Set 4 : Address comments and change to SkCodec #

Patch Set 5 : Fix imports #

Total comments: 28

Patch Set 6 : Address second round of comments #

Patch Set 7 : Add dumpPng() #

Total comments: 12

Patch Set 8 : Fix names, static and simplify #

Total comments: 12

Patch Set 9 : More cleanup and docs #

Unified diffs Side-by-side diffs Delta from patch set Stats (+121 lines, -3 lines) Patch
M fuzz/fuzz.cpp View 1 2 3 4 5 6 7 8 1 chunk +121 lines, -3 lines 0 comments Download

Messages

Total messages: 25 (9 generated)
kjlubick
4 years, 11 months ago (2016-01-15 19:50:15 UTC) #3
scroggo
https://codereview.chromium.org/1591073002/diff/40001/fuzz/fuzz.cpp File fuzz/fuzz.cpp (right): https://codereview.chromium.org/1591073002/diff/40001/fuzz/fuzz.cpp#newcode14 fuzz/fuzz.cpp:14: #include "SkImageDecoder.h" We're actually interested in testing SkCodec, not ...
4 years, 11 months ago (2016-01-19 15:35:40 UTC) #7
mtklein
https://codereview.chromium.org/1591073002/diff/40001/fuzz/fuzz.cpp File fuzz/fuzz.cpp (right): https://codereview.chromium.org/1591073002/diff/40001/fuzz/fuzz.cpp#newcode28 fuzz/fuzz.cpp:28: DEFINE_string2(file, f, "", "The path to a binary file."); ...
4 years, 11 months ago (2016-01-19 16:17:25 UTC) #8
kjlubick
I switched to SkCodec, but my test png is not decoding correctly. I'll attach the ...
4 years, 11 months ago (2016-01-20 13:08:15 UTC) #9
mtklein
https://codereview.chromium.org/1591073002/diff/80001/fuzz/fuzz.cpp File fuzz/fuzz.cpp (left): https://codereview.chromium.org/1591073002/diff/80001/fuzz/fuzz.cpp#oldcode19 fuzz/fuzz.cpp:19: if (FLAGS_bytes.isEmpty()) { I think you need to rebase ...
4 years, 11 months ago (2016-01-20 14:49:07 UTC) #10
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1591073002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1591073002/80001
4 years, 11 months ago (2016-01-20 14:49:22 UTC) #12
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Build-Mac10.9-Clang-Arm7-Debug-iOS-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Mac10.9-Clang-Arm7-Debug-iOS-Trybot/builds/818) Build-Ubuntu-Clang-x86_64-Debug-Trybot on ...
4 years, 11 months ago (2016-01-20 14:50:04 UTC) #14
scroggo
> Add ability to fuzz images and skps to fuzz binary Since this is the ...
4 years, 11 months ago (2016-01-20 18:46:19 UTC) #15
kjlubick
https://codereview.chromium.org/1591073002/diff/80001/fuzz/fuzz.cpp File fuzz/fuzz.cpp (left): https://codereview.chromium.org/1591073002/diff/80001/fuzz/fuzz.cpp#oldcode19 fuzz/fuzz.cpp:19: if (FLAGS_bytes.isEmpty()) { On 2016/01/20 at 14:49:06, mtklein wrote: ...
4 years, 11 months ago (2016-01-20 19:21:58 UTC) #16
mtklein
https://codereview.chromium.org/1591073002/diff/120001/fuzz/fuzz.cpp File fuzz/fuzz.cpp (right): https://codereview.chromium.org/1591073002/diff/120001/fuzz/fuzz.cpp#newcode30 fuzz/fuzz.cpp:30: DEFINE_string(dump, "", "If not empty, dump 'image' or 'skp' ...
4 years, 11 months ago (2016-01-20 20:15:21 UTC) #17
kjlubick
https://codereview.chromium.org/1591073002/diff/120001/fuzz/fuzz.cpp File fuzz/fuzz.cpp (right): https://codereview.chromium.org/1591073002/diff/120001/fuzz/fuzz.cpp#newcode30 fuzz/fuzz.cpp:30: DEFINE_string(dump, "", "If not empty, dump 'image' or 'skp' ...
4 years, 11 months ago (2016-01-20 20:32:59 UTC) #18
mtklein
https://codereview.chromium.org/1591073002/diff/140001/fuzz/fuzz.cpp File fuzz/fuzz.cpp (right): https://codereview.chromium.org/1591073002/diff/140001/fuzz/fuzz.cpp#newcode22 fuzz/fuzz.cpp:22: #include <cmath> What's this needed for? https://codereview.chromium.org/1591073002/diff/140001/fuzz/fuzz.cpp#newcode24 fuzz/fuzz.cpp:24: __SK_FORCE_IMAGE_DECODER_LINKING; ...
4 years, 11 months ago (2016-01-20 20:39:29 UTC) #19
kjlubick
https://codereview.chromium.org/1591073002/diff/140001/fuzz/fuzz.cpp File fuzz/fuzz.cpp (right): https://codereview.chromium.org/1591073002/diff/140001/fuzz/fuzz.cpp#newcode22 fuzz/fuzz.cpp:22: #include <cmath> On 2016/01/20 at 20:39:29, mtklein wrote: > ...
4 years, 11 months ago (2016-01-20 20:46:00 UTC) #20
mtklein
lgtm
4 years, 11 months ago (2016-01-20 20:49:26 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1591073002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1591073002/160001
4 years, 11 months ago (2016-01-21 12:51:45 UTC) #23
commit-bot: I haz the power
4 years, 11 months ago (2016-01-21 13:03:31 UTC) #25
Message was sent while issue was closed.
Committed patchset #9 (id:160001) as
https://skia.googlesource.com/skia/+/dba57344090631bba798e64e78f776bf6afba89c

Powered by Google App Engine
This is Rietveld 408576698