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

Issue 2807083002: Add LLVM fuzzer: QCMS color space and color transform (Closed)

Created:
3 years, 8 months ago by Noel Gordon
Modified:
3 years, 8 months ago
CC:
chromium-reviews, fuzzing_chromium.org, Nico
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add LLVM fuzzer: QCMS color space and color transform Add fuzzer that reads test input and creates a color profile from it (or bails if not). Given that profile |test|, create another profile |srgb| used to transform colors to/from when running the color transform fuzzer test stage. Test ICC version 2 profiles only since ICC version 4 support in QCMS is not enabled in Chrome. Add third_party/qcms/DEPS: allows qcms_color_space_fuzzer to use //base and //testing code. Speed: achieves ~2300 execs/s on Mac Air. Seed corpus of ICC profiles uploaded to qcms_color_space_fuzzer GCS bucket. Set max_len to 4Meg (color profiles can be large and this is the limit that Chrome accepts), and use the ICC profile dict added in http://crrev.com/461603 TBR=inferno@chromium.org BUG=708016 Review-Url: https://codereview.chromium.org/2807083002 Cr-Commit-Position: refs/heads/master@{#464398} Committed: https://chromium.googlesource.com/chromium/src/+/6997c5c92f9e46e7834fa539b360991ac71e2e01

Patch Set 1 : Add qcms fuzzer to //testing/libfuzzer/fuzzers. #

Patch Set 2 : Review comments: Move fuzzer into third_party/qcms. #

Total comments: 2

Patch Set 3 : Review comments: Move to root BUILD.gn file. #

Total comments: 5

Patch Set 4 : Use an in-situ hash function. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+111 lines, -0 lines) Patch
M BUILD.gn View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M third_party/qcms/BUILD.gn View 1 2 chunks +19 lines, -0 lines 0 comments Download
A third_party/qcms/DEPS View 1 1 chunk +6 lines, -0 lines 0 comments Download
A third_party/qcms/qcms_color_space_fuzzer.cc View 1 2 3 1 chunk +85 lines, -0 lines 0 comments Download

Messages

Total messages: 66 (38 generated)
Noel Gordon
PTAL.
3 years, 8 months ago (2017-04-10 07:00:53 UTC) #5
kcc2
Can this go to the project's directory instead of testing/libfuzzer/fuzzers?
3 years, 8 months ago (2017-04-10 18:09:41 UTC) #11
Noel Gordon
Maybe, I don't really know the answer to your question or why it's important.
3 years, 8 months ago (2017-04-11 00:47:06 UTC) #12
kcc2
On 2017/04/11 00:47:06, noel gordon wrote: > Maybe, I don't really know the answer to ...
3 years, 8 months ago (2017-04-11 01:11:06 UTC) #13
Noel Gordon
On 2017/04/11 01:11:06, kcc2 wrote: > On 2017/04/11 00:47:06, noel gordon wrote: > > Maybe, ...
3 years, 8 months ago (2017-04-11 01:26:04 UTC) #14
Noel Gordon
Found the following, trying that ... https://chromium.googlesource.com/chromium/src/testing/libfuzzer/+/HEAD/getting_started.md#Define-GN-Target
3 years, 8 months ago (2017-04-11 03:13:22 UTC) #15
Noel Gordon
On 2017/04/11 03:13:22, noel gordon wrote: > Found the following, trying that ... > > ...
3 years, 8 months ago (2017-04-11 03:21:57 UTC) #16
Noel Gordon
Adding empty group("fuzzers") to qcms/BUILD.gn group("fuzzers") { } Made testing/libfuzzer/fuzzers/BUILD.gn depend on that group("fuzzers") { ...
3 years, 8 months ago (2017-04-11 03:54:40 UTC) #17
Noel Gordon
Add third_party/qcms/DEPS add to allow qcms_color_space_fuzzer to use //base and //testing stuff
3 years, 8 months ago (2017-04-11 04:05:18 UTC) #18
Oliver Chang
https://codereview.chromium.org/2807083002/diff/20001/testing/libfuzzer/fuzzers/BUILD.gn File testing/libfuzzer/fuzzers/BUILD.gn (right): https://codereview.chromium.org/2807083002/diff/20001/testing/libfuzzer/fuzzers/BUILD.gn#newcode14 testing/libfuzzer/fuzzers/BUILD.gn:14: "//third_party/qcms:fuzzers", chiming in here. is this explicit dependency necessary ...
3 years, 8 months ago (2017-04-11 19:46:48 UTC) #26
Noel Gordon
https://codereview.chromium.org/2807083002/diff/20001/testing/libfuzzer/fuzzers/BUILD.gn File testing/libfuzzer/fuzzers/BUILD.gn (right): https://codereview.chromium.org/2807083002/diff/20001/testing/libfuzzer/fuzzers/BUILD.gn#newcode14 testing/libfuzzer/fuzzers/BUILD.gn:14: "//third_party/qcms:fuzzers", On 2017/04/11 19:46:47, Oliver Chang wrote: > chiming ...
3 years, 8 months ago (2017-04-12 00:13:57 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2807083002/40001
3 years, 8 months ago (2017-04-12 00:15:02 UTC) #29
commit-bot: I haz the power
No L-G-T-M from a valid reviewer yet. CQ run can only be started once the ...
3 years, 8 months ago (2017-04-12 00:15:04 UTC) #31
Oliver Chang
lgtm
3 years, 8 months ago (2017-04-12 00:19:45 UTC) #32
Noel Gordon
+dcheng for the DEPS change.
3 years, 8 months ago (2017-04-12 00:26:15 UTC) #34
Noel Gordon
+thakis for the BUILD.gn change.
3 years, 8 months ago (2017-04-12 00:32:36 UTC) #36
dcheng
deps lgtm https://codereview.chromium.org/2807083002/diff/40001/third_party/qcms/qcms_color_space_fuzzer.cc File third_party/qcms/qcms_color_space_fuzzer.cc (right): https://codereview.chromium.org/2807083002/diff/40001/third_party/qcms/qcms_color_space_fuzzer.cc#newcode36 third_party/qcms/qcms_color_space_fuzzer.cc:36: auto transform = Nit: auto* https://codereview.chromium.org/2807083002/diff/40001/third_party/qcms/qcms_color_space_fuzzer.cc#newcode72 third_party/qcms/qcms_color_space_fuzzer.cc:72: ...
3 years, 8 months ago (2017-04-12 07:19:24 UTC) #41
Noel Gordon
https://codereview.chromium.org/2807083002/diff/40001/third_party/qcms/qcms_color_space_fuzzer.cc File third_party/qcms/qcms_color_space_fuzzer.cc (right): https://codereview.chromium.org/2807083002/diff/40001/third_party/qcms/qcms_color_space_fuzzer.cc#newcode36 third_party/qcms/qcms_color_space_fuzzer.cc:36: auto transform = On 2017/04/12 07:19:23, dcheng wrote: > ...
3 years, 8 months ago (2017-04-12 12:09:47 UTC) #44
dcheng
https://codereview.chromium.org/2807083002/diff/40001/third_party/qcms/qcms_color_space_fuzzer.cc File third_party/qcms/qcms_color_space_fuzzer.cc (right): https://codereview.chromium.org/2807083002/diff/40001/third_party/qcms/qcms_color_space_fuzzer.cc#newcode72 third_party/qcms/qcms_color_space_fuzzer.cc:72: const size_t hash = Hash(reinterpret_cast<const char*>(data), size); On 2017/04/12 ...
3 years, 8 months ago (2017-04-12 20:21:10 UTC) #47
Noel Gordon
On 2017/04/12 20:21:10, dcheng wrote: > Hmm... how about just use one byte of the ...
3 years, 8 months ago (2017-04-13 00:34:13 UTC) #48
dcheng
On 2017/04/13 00:34:13, noel gordon wrote: > On 2017/04/12 20:21:10, dcheng wrote: > > > ...
3 years, 8 months ago (2017-04-13 00:59:30 UTC) #49
Noel Gordon
On 2017/04/13 00:59:30, dcheng wrote: > My comment shouldn't block this CL, but I want ...
3 years, 8 months ago (2017-04-13 04:39:25 UTC) #51
jochen (gone - plz use gerrit)
lgtm
3 years, 8 months ago (2017-04-13 11:41:10 UTC) #52
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2807083002/60001
3 years, 8 months ago (2017-04-13 12:09:14 UTC) #55
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/410345)
3 years, 8 months ago (2017-04-13 12:15:38 UTC) #57
Noel Gordon
** Presubmit ERRORS ** You need LGTM from owners of depends-on paths in DEPS that ...
3 years, 8 months ago (2017-04-13 12:16:50 UTC) #59
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2807083002/60001
3 years, 8 months ago (2017-04-13 12:18:27 UTC) #62
commit-bot: I haz the power
3 years, 8 months ago (2017-04-13 14:17:33 UTC) #66
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/6997c5c92f9e46e7834fa539b360...

Powered by Google App Engine
This is Rietveld 408576698