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

Issue 277410043: i#1734 Dr. Fuzz: add option -fuzz_libfuzzer

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

Description

Commit log for first patchset: --------------- i#1734 Dr. Fuzz: add option -fuzz_libfuzzer - add option -fuzz_libfuzzer for fuzzing tests written for LibFuzzer - add shadow_init_region to initialize shadow memory for app - remove input_buffer_copy, not used anywhere ---------------

Patch Set 1 #

Total comments: 14
Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -11 lines) Patch
M drmemory/fuzzer.c View 5 chunks +13 lines, -8 lines 9 comments Download
M drmemory/options.c View 2 chunks +9 lines, -1 line 1 comment Download
M drmemory/optionsx.h View 2 chunks +4 lines, -0 lines 3 comments Download
M drmemory/shadow.h View 1 chunk +11 lines, -2 lines 1 comment Download
M drmemory/shadow.c View 1 chunk +17 lines, -0 lines 0 comments Download

Messages

Total messages: 5
zhaoqin
8 years, 4 months ago (2015-12-16 23:04:02 UTC) #1
bruening
Please add sthg to drfuzz.dox too. I'm confused about how this interacts w/ your other ...
8 years, 4 months ago (2015-12-16 23:52:13 UTC) #2
zhaoqin
https://codereview.appspot.com/277410043/diff/1/drmemory/fuzzer.c File drmemory/fuzzer.c (right): https://codereview.appspot.com/277410043/diff/1/drmemory/fuzzer.c#newcode99 drmemory/fuzzer.c:99: * is safe to access the input_size fields of ...
8 years, 4 months ago (2015-12-17 04:33:52 UTC) #3
bruening
https://codereview.appspot.com/277410043/diff/1/drmemory/optionsx.h File drmemory/optionsx.h (right): https://codereview.appspot.com/277410043/diff/1/drmemory/optionsx.h#newcode664 drmemory/optionsx.h:664: "Fuzz tests written for LibFuzzer, where the target function ...
8 years, 4 months ago (2015-12-17 04:40:42 UTC) #4
zhaoqin
8 years, 4 months ago (2015-12-17 04:53:58 UTC) #5
On 2015/12/17 04:40:42, bruening wrote:
> https://codereview.appspot.com/277410043/diff/1/drmemory/optionsx.h
> File drmemory/optionsx.h (right):
> 
> https://codereview.appspot.com/277410043/diff/1/drmemory/optionsx.h#newcode664
> drmemory/optionsx.h:664: "Fuzz tests written for LibFuzzer, where the target
> function is "FUZZ_FUNC_LIBFUZZER_NAME".")
> On 2015/12/17 04:33:52, zhaoqin wrote:
> > On 2015/12/16 23:52:13, bruening wrote:
> > > Explain that -fuzz_function doesn't need to be specified
> > 
> > I have a different idea about adapt to libfuzzer to avoid this option.
> > Basically, we just need to check the main module if there is a
> > LLVMFuzzerTestOneInput function, if yes and fuzz_function is not specified,
we
> > will fuzz LLVMFuzzerTestOneInput.
> > 
> > What do you think?
> 
> Are there cases where LLVMFuzzerTestOneInput would be in a library?  That is
my
> only concern, o/w seems good.

I would say it is possible, but not very likely.
In that case, I think it makes sense to let user to specify the fuzz_function.
We can check it on every module.
Basically, we set LLVMFuzzerTestOneInput as another default fuzz target and may
need adjust some other default options value.
Sign in to reply to this message.

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