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

Issue 2036523002: Implement a fuzzer for skia paths. (Closed)

Created:
4 years, 6 months ago by Martin Barbella
Modified:
4 years, 6 months ago
CC:
chromium-reviews, inferno, kcc2, tjbecker, jcgregorio
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement a fuzzer for skia paths. BUG= Committed: https://crrev.com/cf781994211e4439ec06af08eacf01ffbfe9801f Cr-Commit-Position: refs/heads/master@{#400461}

Patch Set 1 #

Patch Set 2 : Add copyright header #

Total comments: 3

Patch Set 3 : Add more operations, refactor #

Total comments: 10

Patch Set 4 : Address comments, move usage of path to the end #

Patch Set 5 : Style fixes #

Patch Set 6 : Add a comment #

Total comments: 2

Patch Set 7 : More refactoring #

Patch Set 8 : Move to testing/libfuzzer #

Unified diffs Side-by-side diffs Delta from patch set Stats (+145 lines, -0 lines) Patch
M testing/libfuzzer/fuzzers/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +10 lines, -0 lines 0 comments Download
A testing/libfuzzer/fuzzers/skia_path_fuzzer.cc View 1 2 3 4 5 6 7 1 chunk +135 lines, -0 lines 0 comments Download

Messages

Total messages: 32 (10 generated)
Martin Barbella
Max, would you mind doing an initial review of this? https://codereview.chromium.org/2036523002/diff/20001/skia/tools/path_fuzzer/path_fuzzer.cc File skia/tools/path_fuzzer/path_fuzzer.cc (right): https://codereview.chromium.org/2036523002/diff/20001/skia/tools/path_fuzzer/path_fuzzer.cc#newcode15 ...
4 years, 6 months ago (2016-06-01 23:43:36 UTC) #3
mmoroz
https://codereview.chromium.org/2036523002/diff/20001/skia/tools/path_fuzzer/path_fuzzer.cc File skia/tools/path_fuzzer/path_fuzzer.cc (right): https://codereview.chromium.org/2036523002/diff/20001/skia/tools/path_fuzzer/path_fuzzer.cc#newcode15 skia/tools/path_fuzzer/path_fuzzer.cc:15: template <typename T> On 2016/06/01 23:43:36, Martin Barbella wrote: ...
4 years, 6 months ago (2016-06-02 10:05:22 UTC) #4
mmoroz
May we use an array or vector of |std::function<bool(uint8_t*, size_t, SkPath&)>| instead of large switch ...
4 years, 6 months ago (2016-06-02 10:13:39 UTC) #5
mmoroz
https://codereview.chromium.org/2036523002/diff/40001/skia/tools/path_fuzzer/path_fuzzer.cc File skia/tools/path_fuzzer/path_fuzzer.cc (right): https://codereview.chromium.org/2036523002/diff/40001/skia/tools/path_fuzzer/path_fuzzer.cc#newcode13 skia/tools/path_fuzzer/path_fuzzer.cc:13: const int OPERATION_COUNT = 11; Constant names are CamelCase ...
4 years, 6 months ago (2016-06-02 10:18:38 UTC) #6
inferno
I am really excited to see api related sequence fuzzing than just calling one function ...
4 years, 6 months ago (2016-06-02 14:28:54 UTC) #8
mmoroz
On 2016/06/02 14:28:54, inferno wrote: > I am really excited to see api related sequence ...
4 years, 6 months ago (2016-06-02 15:23:36 UTC) #9
Martin Barbella
On 2016/06/02 15:23:36, mmoroz wrote: > On 2016/06/02 14:28:54, inferno wrote: > > I am ...
4 years, 6 months ago (2016-06-02 16:14:09 UTC) #10
Martin Barbella
Thanks for the initial review. Addressed comments and got it back to the point where ...
4 years, 6 months ago (2016-06-02 19:48:24 UTC) #11
mmoroz
LGTM Left a minor suggestion https://codereview.chromium.org/2036523002/diff/100001/skia/tools/path_fuzzer/path_fuzzer.cc File skia/tools/path_fuzzer/path_fuzzer.cc (right): https://codereview.chromium.org/2036523002/diff/100001/skia/tools/path_fuzzer/path_fuzzer.cc#newcode127 skia/tools/path_fuzzer/path_fuzzer.cc:127: auto surface(SkSurface::MakeRasterN32Premul(w + 1, ...
4 years, 6 months ago (2016-06-03 13:52:14 UTC) #12
Martin Barbella
I'm still playing around with this a bit locally. I'll add an owner for review ...
4 years, 6 months ago (2016-06-03 20:10:39 UTC) #13
Martin Barbella
reed: Would you mind taking a look or suggesting another reviewer? I'm specifically looking for ...
4 years, 6 months ago (2016-06-09 22:29:53 UTC) #15
reed1
4 years, 6 months ago (2016-06-10 13:32:27 UTC) #18
reed1
I don't understand the comment/problem with readFromMemory. Can you explain?
4 years, 6 months ago (2016-06-10 13:32:49 UTC) #19
reed1
Lets chat about this. The code reads fine, but Skia itself can't compile this, so ...
4 years, 6 months ago (2016-06-10 13:43:14 UTC) #20
Martin Barbella
On 2016/06/10 13:43:14, reed1 wrote: > Lets chat about this. The code reads fine, but ...
4 years, 6 months ago (2016-06-10 17:29:06 UTC) #21
reed1
Thanks for the explanation. I ask mostly because we are fuzzing entire pictures, and those ...
4 years, 6 months ago (2016-06-10 18:30:09 UTC) #22
aizatsky
On 2016/06/10 at 17:29:06, mbarbella wrote: > On 2016/06/10 13:43:14, reed1 wrote: > > Lets ...
4 years, 6 months ago (2016-06-10 18:37:47 UTC) #23
Martin Barbella
For now I've moved this to testing/libfuzzer.
4 years, 6 months ago (2016-06-17 17:01:52 UTC) #24
inferno
lgtm. I think we can improve this later by trying some more interesting values with ...
4 years, 6 months ago (2016-06-17 17:22:42 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2036523002/140001
4 years, 6 months ago (2016-06-17 17:28:12 UTC) #28
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 6 months ago (2016-06-17 18:23:58 UTC) #30
commit-bot: I haz the power
4 years, 6 months ago (2016-06-17 18:25:35 UTC) #32
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/cf781994211e4439ec06af08eacf01ffbfe9801f
Cr-Commit-Position: refs/heads/master@{#400461}

Powered by Google App Engine
This is Rietveld 408576698