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

Issue 274650043: i#1734 drfuzz: add support for fuzzing data in a struct

Can't Edit
Can't Publish+Mail
Start Review
Created:
8 years, 5 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 drfuzz: add support for fuzzing data in a struct - add -fuzz_data_offset, -fuzz_size_offset, and -fuzz_data_size options - update find_target_buffer to obtain fuzzing data via data_offset - add test for -fuzz_data_offset and -fuzz_size_offset ---------------

Patch Set 1 #

Patch Set 2 : update reviewer #

Total comments: 27
Unified diffs Side-by-side diffs Delta from patch set Stats (+99 lines, -33 lines) Patch
M drmemory/fuzzer.c View 6 chunks +52 lines, -28 lines 12 comments Download
M drmemory/options.c View 2 chunks +8 lines, -1 line 0 comments Download
M drmemory/optionsx.h View 1 chunk +9 lines, -0 lines 15 comments Download
M tests/fuzz/CMakeLists.txt View 1 chunk +4 lines, -0 lines 0 comments Download
M tests/fuzz/fuzz_buffer.c View 3 chunks +26 lines, -4 lines 0 comments Download

Messages

Total messages: 11
zhaoqin
8 years, 5 months ago (2015-11-28 22:37:15 UTC) #1
zhaoqin
Commit log for latest patchset: --------------- i#1734 drfuzz: add support for fuzzing data in a ...
8 years, 5 months ago (2015-11-29 00:10:27 UTC) #2
bruening
https://codereview.appspot.com/274650043/diff/20001/drmemory/fuzzer.c File drmemory/fuzzer.c (right): https://codereview.appspot.com/274650043/diff/20001/drmemory/fuzzer.c#newcode128 drmemory/fuzzer.c:128: int data_offset; /* the offset of data ptr field ...
8 years, 4 months ago (2015-11-30 22:06:10 UTC) #3
zhaoqin
https://codereview.appspot.com/274650043/diff/20001/drmemory/fuzzer.c File drmemory/fuzzer.c (right): https://codereview.appspot.com/274650043/diff/20001/drmemory/fuzzer.c#newcode128 drmemory/fuzzer.c:128: int data_offset; /* the offset of data ptr field ...
8 years, 4 months ago (2015-12-01 20:57:14 UTC) #4
bruening
https://codereview.appspot.com/274650043/diff/20001/drmemory/optionsx.h File drmemory/optionsx.h (right): https://codereview.appspot.com/274650043/diff/20001/drmemory/optionsx.h#newcode619 drmemory/optionsx.h:619: "The offset of the data pointer field in the ...
8 years, 4 months ago (2015-12-01 21:39:15 UTC) #5
bruening
BTW, it says "Reviewers: burening, ..."
8 years, 4 months ago (2015-12-01 21:39:51 UTC) #6
zhaoqin
On 2015/12/01 21:39:51, bruening wrote: > BTW, it says "Reviewers: burening, ..." typo on the ...
8 years, 4 months ago (2015-12-01 22:12:10 UTC) #7
bruening
On 2015/12/01 22:12:10, zhaoqin wrote: > On 2015/12/01 21:39:51, bruening wrote: > > BTW, it ...
8 years, 4 months ago (2015-12-01 22:13:16 UTC) #8
zhaoqin
On 2015/12/01 21:39:15, bruening wrote: > https://codereview.appspot.com/274650043/diff/20001/drmemory/optionsx.h > File drmemory/optionsx.h (right): > > https://codereview.appspot.com/274650043/diff/20001/drmemory/optionsx.h#newcode619 > ...
8 years, 4 months ago (2015-12-01 22:13:38 UTC) #9
zhaoqin
https://codereview.appspot.com/274650043/diff/20001/drmemory/optionsx.h File drmemory/optionsx.h (right): https://codereview.appspot.com/274650043/diff/20001/drmemory/optionsx.h#newcode622 drmemory/optionsx.h:622: "The offset of the data size field in the ...
8 years, 4 months ago (2015-12-08 17:04:26 UTC) #10
bruening
8 years, 4 months ago (2015-12-08 17:36:22 UTC) #11
https://codereview.appspot.com/274650043/diff/20001/drmemory/optionsx.h
File drmemory/optionsx.h (right):

https://codereview.appspot.com/274650043/diff/20001/drmemory/optionsx.h#newco...
drmemory/optionsx.h:622: "The offset of the data size field in the in argument
specified by -fuzz_data_idx.",
On 2015/12/08 17:04:26, zhaoqin wrote:
> On 2015/12/01 20:57:14, zhaoqin wrote:
> > On 2015/11/30 22:06:10, bruening wrote:
> > > This needs clearer documentation.  First, what is "the data".  Second, how
> > does
> > > this relate to -fuzz_data_size and -fuzz_buffer_fixed_size and
> -fuzz_size_idx:
> > > are they mutually exclusive, which takes precedence, etc.
> > 
> > how about 
> > -fuzz_data_size for data size specified by user
> > -fuzz_struct_idx, -fuzz_struct_offs_data, fuzz_struct_offs_size for struct
> > (i#1830)
> > -fuzz_mutate_buf_start, -fuzz_mutate_buf_end, -fuzz_mutate_buf_size for
> mutation
> > start/end or fixed size.
> > 
> > They are not necessary mutually exclusive, e.g., data could be specified,
> > mutate_buf can be specified separately, or by default the same as data
> > start/end/size.
> > The only possible conflict is the fixed size vs passed in size, which we
would
> > honor fixed size, then passed in size, then mutate_buffer size (cannot be
> bigger
> > than actual data size). 
> 
> What do you think of the option name?

I would suggest s/buf_(start|end)/offs_\1/ to make it clear these are offsets
and not absolute pointers or sthg
Sign in to reply to this message.

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