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

Issue 1703523002: [libfuzzer] support of custom libfuzzer options via .options file. (Closed)

Created:
4 years, 10 months ago by mmoroz
Modified:
4 years, 9 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[libfuzzer] support of custom libfuzzer options via .options file. 1) remove 'fuzzer_test_launcher', use 'fuzzer_test' for both fuzzers and tests 2) copy dictionary with name like '<fuzzer_name>.dict' (otherwise there are warnings if one dictionary is used for mor than one fuzzer) 3) remove .sh-warpper for fuzzers because it is platform-dependent 4) copy .options file with name like '<fuzzer_name>.options' if no 'dict' used and update/generate .options file in the build root if 'dict' is used 5) a couple of tests for updated build template and .options generation R=aizatsky@chromium.org, inferno@chromium.org, krasin@chromium.org BUG=539572 Committed: https://crrev.com/344a75ae39ea54533e7185bc98a063f8a54ae531 Cr-Commit-Position: refs/heads/master@{#378761}

Patch Set 1 #

Total comments: 4

Patch Set 2 : use forward_variables_from in .gni, refactor launcher generator #

Total comments: 3

Patch Set 3 : replace .sh-wrapper script with .options config file. #

Total comments: 4

Patch Set 4 : fix nits in check_fuzzer_config.py script and fuzzer_launcher_test.cc #

Unified diffs Side-by-side diffs Delta from patch set Stats (+268 lines, -107 lines) Patch
M testing/libfuzzer/fuzzer_test.gni View 1 2 4 chunks +43 lines, -46 lines 0 comments Download
A testing/libfuzzer/gen_fuzzer_config.py View 1 2 1 chunk +47 lines, -0 lines 0 comments Download
M testing/libfuzzer/gen_fuzzer_runner.py View 1 2 1 chunk +0 lines, -31 lines 0 comments Download
M testing/libfuzzer/tests/BUILD.gn View 1 2 1 chunk +35 lines, -8 lines 0 comments Download
A testing/libfuzzer/tests/check_fuzzer_config.py View 1 2 3 1 chunk +22 lines, -0 lines 0 comments Download
A testing/libfuzzer/tests/dicts_subdir/test_subdir.dict View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
A testing/libfuzzer/tests/fuzzer_config_and_dict_test.options View 1 2 1 chunk +20 lines, -0 lines 0 comments Download
A testing/libfuzzer/tests/fuzzer_config_only_test.options View 1 2 1 chunk +17 lines, -0 lines 0 comments Download
M testing/libfuzzer/tests/fuzzer_launcher_test.cc View 1 2 3 1 chunk +72 lines, -11 lines 0 comments Download
D testing/libfuzzer/tests/print_args.py View 1 2 1 chunk +0 lines, -11 lines 0 comments Download
A testing/libfuzzer/tests/test.dict View 1 2 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 29 (8 generated)
mmoroz
4 years, 10 months ago (2016-02-16 14:30:03 UTC) #1
mmoroz
On 2016/02/16 14:30:03, mmoroz wrote: Alternative idea is to generate one more file when "params" ...
4 years, 10 months ago (2016-02-16 16:17:51 UTC) #2
krasin1
Hi Max, I will leave this CL for Mike to review. krasin
4 years, 10 months ago (2016-02-16 17:03:03 UTC) #3
aizatsky
https://codereview.chromium.org/1703523002/diff/1/testing/libfuzzer/fuzzer_test.gni File testing/libfuzzer/fuzzer_test.gni (right): https://codereview.chromium.org/1703523002/diff/1/testing/libfuzzer/fuzzer_test.gni#newcode95 testing/libfuzzer/fuzzer_test.gni:95: if (defined(invoker.dict)) { use forward_variables_from (see below). https://codereview.chromium.org/1703523002/diff/1/testing/libfuzzer/gen_fuzzer_runner.py File ...
4 years, 10 months ago (2016-02-16 18:25:05 UTC) #4
mmoroz
https://codereview.chromium.org/1703523002/diff/1/testing/libfuzzer/fuzzer_test.gni File testing/libfuzzer/fuzzer_test.gni (right): https://codereview.chromium.org/1703523002/diff/1/testing/libfuzzer/fuzzer_test.gni#newcode95 testing/libfuzzer/fuzzer_test.gni:95: if (defined(invoker.dict)) { On 2016/02/16 18:25:05, aizatsky wrote: > ...
4 years, 10 months ago (2016-02-17 10:36:48 UTC) #5
aizatsky
lgtm
4 years, 10 months ago (2016-02-17 21:35:17 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1703523002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1703523002/20001
4 years, 10 months ago (2016-02-17 21:37:27 UTC) #8
commit-bot: I haz the power
No L-G-T-M from a valid reviewer yet. Only full committers are accepted. Even if an ...
4 years, 10 months ago (2016-02-17 21:37:30 UTC) #10
mmoroz
On 2016/02/17 21:37:30, commit-bot: I haz the power wrote: > No L-G-T-M from a valid ...
4 years, 10 months ago (2016-02-18 12:03:16 UTC) #11
aarya
Oliver, can you review this. I was more thinking about putting individual porperties like maxLen, ...
4 years, 10 months ago (2016-02-18 21:49:59 UTC) #13
Oliver Chang
https://codereview.chromium.org/1703523002/diff/20001/testing/libfuzzer/gen_fuzzer_runner.py File testing/libfuzzer/gen_fuzzer_runner.py (right): https://codereview.chromium.org/1703523002/diff/20001/testing/libfuzzer/gen_fuzzer_runner.py#newcode24 testing/libfuzzer/gen_fuzzer_runner.py:24: def buildFuzzerArguments(args): nit: follow chromium python style guide (https://www.chromium.org/chromium-os/python-style-guidelines) ...
4 years, 10 months ago (2016-02-18 22:31:42 UTC) #14
mmoroz
On 2016/02/18 21:49:59, aarya wrote: > Oliver, can you review this. > > I was ...
4 years, 10 months ago (2016-02-18 22:37:50 UTC) #15
mmoroz
On 2016/02/18 22:37:50, mmoroz wrote: > On 2016/02/18 21:49:59, aarya wrote: > > Oliver, can ...
4 years, 10 months ago (2016-02-25 17:52:53 UTC) #16
mmoroz
On 2016/02/25 17:52:53, mmoroz wrote: > On 2016/02/18 22:37:50, mmoroz wrote: > > On 2016/02/18 ...
4 years, 10 months ago (2016-02-25 18:09:21 UTC) #18
mmoroz
Mike and Oliver, could you please take a look into latest patch set?
4 years, 9 months ago (2016-02-29 13:26:55 UTC) #19
Oliver Chang
sorry, this fell through the cracks. lgtm, but I'm not that familiar with GN. https://codereview.chromium.org/1703523002/diff/40001/testing/libfuzzer/tests/check_fuzzer_config.py ...
4 years, 9 months ago (2016-02-29 18:53:50 UTC) #20
mmoroz
https://codereview.chromium.org/1703523002/diff/40001/testing/libfuzzer/tests/check_fuzzer_config.py File testing/libfuzzer/tests/check_fuzzer_config.py (right): https://codereview.chromium.org/1703523002/diff/40001/testing/libfuzzer/tests/check_fuzzer_config.py#newcode21 testing/libfuzzer/tests/check_fuzzer_config.py:21: for option_name in fuzzer_config.options(OPTIONS_SECTION_LIBFUZZER): On 2016/02/29 18:53:50, Oliver Chang ...
4 years, 9 months ago (2016-03-01 12:35:20 UTC) #21
inferno
lgtm
4 years, 9 months ago (2016-03-02 16:03:04 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1703523002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1703523002/60001
4 years, 9 months ago (2016-03-02 16:05:32 UTC) #25
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 9 months ago (2016-03-02 16:57:30 UTC) #27
commit-bot: I haz the power
4 years, 9 months ago (2016-03-02 16:59:57 UTC) #29
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/344a75ae39ea54533e7185bc98a063f8a54ae531
Cr-Commit-Position: refs/heads/master@{#378761}

Powered by Google App Engine
This is Rietveld 408576698