Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(7291)

Issue 282870043: i#1734 Dr. Fuzz: add corpus fuzzing

Can't Edit
Can't Publish+Mail
Start Review
Created:
8 years, 4 months ago by zhaoqin
Modified:
8 years, 3 months ago
Reviewers:
bruening
CC:
drmemory-devs_googlegroups.com
Visibility:
Public.

Description

Commit log for first patchset: --------------- i#1734 Dr. Fuzz: add corpus fuzzing - add option fuzz_corpus for corpus directory - add corpus_table, corpus_vec, and mutator_vec - add fuzzer_read_corpus_list to read file list from corpus directory - update fuzzer_init to call fuzzer_read_corpus_list - update pre_fuzz/post_fuzz to call pre_fuzz_corpus/post_fuzz_corpus - pre_fuzz_corpus * corpus iteration: execute corpus input * mutation iteration: execute mutate input - post_fuzz_corpus * dump input if discover new basic blocks in mutation iteration ---------------

Patch Set 1 #

Patch Set 2 : PTAL #

Patch Set 3 : fix a style issue #

Patch Set 4 : fixed two minor WINDOWS bug #

Total comments: 72

Patch Set 5 : PTAL #

Total comments: 17

Patch Set 6 : final #

Patch Set 7 : add code to limit single thread fuzzing #

Patch Set 8 : Committed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+361 lines, -44 lines) Patch
M drmemory/fuzzer.c View 1 2 3 4 5 6 25 chunks +357 lines, -44 lines 0 comments Download
M drmemory/options.c View 1 chunk +1 line, -0 lines 0 comments Download
M drmemory/optionsx.h View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 14
zhaoqin
8 years, 4 months ago (2015-12-22 22:33:58 UTC) #1
zhaoqin
I still do not like this CL much, too complex, not simple enough. Let me ...
8 years, 4 months ago (2015-12-22 22:36:02 UTC) #2
zhaoqin
Commit log for latest patchset: --------------- i#1734 Dr. Fuzz: add corpus fuzzing - add option ...
8 years, 4 months ago (2015-12-30 21:09:26 UTC) #3
zhaoqin
Commit log for latest patchset: --------------- i#1734 Dr. Fuzz: add corpus fuzzing - add option ...
8 years, 4 months ago (2015-12-30 21:12:05 UTC) #4
zhaoqin
Commit log for latest patchset: --------------- i#1734 Dr. Fuzz: add corpus fuzzing - add option ...
8 years, 4 months ago (2015-12-30 21:38:24 UTC) #5
bruening
Maybe it's worth another look as there are some bugs. Overall it looks pretty good ...
8 years, 3 months ago (2016-01-04 19:23:43 UTC) #6
zhaoqin
Commit log for latest patchset: --------------- i#1734 Dr. Fuzz: add corpus fuzzing - add option ...
8 years, 3 months ago (2016-01-05 19:47:24 UTC) #7
zhaoqin
https://codereview.appspot.com/282870043/diff/20002/drmemory/fuzzer.c File drmemory/fuzzer.c (left): https://codereview.appspot.com/282870043/diff/20002/drmemory/fuzzer.c#oldcode97 drmemory/fuzzer.c:97: byte *input_buffer_copy; /* threadsafe copy of the fuzz target's ...
8 years, 3 months ago (2016-01-05 19:48:49 UTC) #8
bruening
There is still an overflow bug, and problems in the comments. If those are fixed ...
8 years, 3 months ago (2016-01-06 05:14:03 UTC) #9
zhaoqin
Commit log for latest patchset: --------------- i#1734 Dr. Fuzz: add corpus fuzzing - add option ...
8 years, 3 months ago (2016-01-06 16:45:14 UTC) #10
zhaoqin
https://codereview.appspot.com/282870043/diff/70001/drmemory/fuzzer.c File drmemory/fuzzer.c (right): https://codereview.appspot.com/282870043/diff/70001/drmemory/fuzzer.c#newcode156 drmemory/fuzzer.c:156: /* stores corpus input file names, all operations are ...
8 years, 3 months ago (2016-01-06 16:49:15 UTC) #11
bruening
https://codereview.appspot.com/282870043/diff/70001/drmemory/fuzzer.c File drmemory/fuzzer.c (right): https://codereview.appspot.com/282870043/diff/70001/drmemory/fuzzer.c#newcode156 drmemory/fuzzer.c:156: /* stores corpus input file names, all operations are ...
8 years, 3 months ago (2016-01-06 17:08:18 UTC) #12
zhaoqin
Commit log for latest patchset: --------------- i#1734 Dr. Fuzz: add corpus based fuzzing - add ...
8 years, 3 months ago (2016-01-06 22:49:43 UTC) #13
zhaoqin
8 years, 3 months ago (2016-01-06 23:16:07 UTC) #14
Committed as
https://github.com/DynamoRIO/drmemory/commit/0b303f03d59b24bca565df0a23cc3707...

Final commit log: 
---------------
i#1734 Dr. Fuzz: add corpus based fuzzing

- add option fuzz_corpus for corpus directory
- add corpus_vec and mutator_vec
- add fuzzer_read_corpus_list to read file list from corpus directory
- update fuzzer_init to call fuzzer_read_corpus_list
- update pre_fuzz/post_fuzz to call pre_fuzz_corpus/post_fuzz_corpus
- pre_fuzz_corpus
  * corpus phase: execute corpus input
  * mutation phase: execute mutate input
- post_fuzz_corpus
  * dump input if discover new basic blocks in mutation iteration
  * add mutator into mutator_vec
- add tid in fuzz_target to limit single thread fuzzing
- remove unused input_buffer_copy from fuzz_state_t struct

Review-URL: https://codereview.appspot.com/282870043
---------------
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b