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

Issue 279440043: i#1734 Dr. Fuzz: add -fuzz_replace_buffer to support Dr. Fuzz replacing input buffer

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 -fuzz_replace_buffer to support Dr. Fuzz replacing input buffer - add -fuzz_replace_buffer to support allocating input buffer by Dr. Memory - add alloc_fuzz_input_buffer/free_fuzz_input_buffer in fuzzer.c to alloc/free app memory - add client_app_malloc and client_app_free in alloc_replace.c to allocate app memory from client - remove mutator_span_empty in fuzz_state - update load_fuzz_input to replace input buffer if necessary - update find_target_buffer to replace input buffer if necessary - add fuzz_buffer.overflow test ---------------

Patch Set 1 #

Total comments: 28

Patch Set 2 : PTAL #

Total comments: 1

Patch Set 3 : update commit #

Patch Set 4 : update comment #

Total comments: 31

Patch Set 5 : final #

Patch Set 6 : add missint fuzz_buffer.overflow.out and fuzz_buffer.overflow.res #

Unified diffs Side-by-side diffs Delta from patch set Stats (+197 lines, -44 lines) Patch
M common/alloc.h View 1 2 1 chunk +14 lines, -0 lines 0 comments Download
M common/alloc_replace.c View 1 2 3 4 5 1 chunk +45 lines, -0 lines 0 comments Download
M drmemory/fuzzer.c View 1 2 3 4 11 chunks +118 lines, -37 lines 0 comments Download
M drmemory/options.c View 1 2 3 4 2 chunks +7 lines, -1 line 0 comments Download
M drmemory/optionsx.h View 1 2 3 4 2 chunks +4 lines, -1 line 0 comments Download
M tests/fuzz/CMakeLists.txt View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
A + tests/fuzz/fuzz_buffer.overflow.out View 1 2 3 4 5 1 chunk +3 lines, -3 lines 0 comments Download
A + tests/fuzz/fuzz_buffer.overflow.res View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 17
zhaoqin
8 years, 4 months ago (2015-12-15 23:09:36 UTC) #1
bruening
The alloc code needs another look -- are you sure it works on Windows? https://codereview.appspot.com/279440043/diff/1/common/alloc.h ...
8 years, 4 months ago (2015-12-16 23:00:43 UTC) #2
zhaoqin
Commit log for latest patchset: --------------- i#1734 Dr. Fuzz: add -fuzz_replace_buffer to support Dr. Fuzz ...
8 years, 4 months ago (2015-12-17 23:42:42 UTC) #3
zhaoqin
https://codereview.appspot.com/279440043/diff/1/common/alloc.h File common/alloc.h (right): https://codereview.appspot.com/279440043/diff/1/common/alloc.h#newcode287 common/alloc.h:287: /* called by client in a cleancall for allocating ...
8 years, 4 months ago (2015-12-17 23:43:12 UTC) #4
bruening
https://codereview.appspot.com/279440043/diff/1/common/alloc.h File common/alloc.h (right): https://codereview.appspot.com/279440043/diff/1/common/alloc.h#newcode293 common/alloc.h:293: client_app_free(void *drcontext, void *ptr); On 2015/12/17 23:43:11, zhaoqin wrote: ...
8 years, 4 months ago (2015-12-18 17:48:23 UTC) #5
zhaoqin
Commit log for latest patchset: --------------- i#1734 Dr. Fuzz: add -fuzz_replace_buffer to support Dr. Fuzz ...
8 years, 4 months ago (2015-12-18 20:27:29 UTC) #6
zhaoqin
https://codereview.appspot.com/279440043/diff/1/common/alloc.h File common/alloc.h (right): https://codereview.appspot.com/279440043/diff/1/common/alloc.h#newcode293 common/alloc.h:293: client_app_free(void *drcontext, void *ptr); On 2015/12/18 17:48:22, bruening wrote: ...
8 years, 4 months ago (2015-12-18 20:27:49 UTC) #7
bruening
On 2015/12/18 20:27:49, zhaoqin wrote: > https://codereview.appspot.com/279440043/diff/1/common/alloc.h > File common/alloc.h (right): > > https://codereview.appspot.com/279440043/diff/1/common/alloc.h#newcode293 > ...
8 years, 4 months ago (2015-12-18 20:34:36 UTC) #8
bruening
Has a couple of code bugs and some grammar issues in the comments. If all ...
8 years, 4 months ago (2015-12-18 20:56:10 UTC) #9
zhaoqin
about callstack, do we want something like # 0 drfuzz_reallocate_func # 1 repeatme # 2 ...
8 years, 4 months ago (2015-12-18 23:16:32 UTC) #10
bruening
https://codereview.appspot.com/279440043/diff/60001/common/alloc_replace.c File common/alloc_replace.c (right): https://codereview.appspot.com/279440043/diff/60001/common/alloc_replace.c#newcode5439 common/alloc_replace.c:5439: client_stack_alloc(final_app_xsp - sizeof(void*), final_app_xsp, true/*defined*/); On 2015/12/18 23:16:31, zhaoqin ...
8 years, 4 months ago (2015-12-18 23:37:25 UTC) #11
bruening
https://codereview.appspot.com/279440043/diff/60001/common/alloc_replace.c File common/alloc_replace.c (right): https://codereview.appspot.com/279440043/diff/60001/common/alloc_replace.c#newcode5439 common/alloc_replace.c:5439: client_stack_alloc(final_app_xsp - sizeof(void*), final_app_xsp, true/*defined*/); On 2015/12/18 23:16:31, zhaoqin ...
8 years, 4 months ago (2015-12-18 23:42:43 UTC) #12
bruening
https://codereview.appspot.com/279440043/diff/60001/common/alloc_replace.c File common/alloc_replace.c (right): https://codereview.appspot.com/279440043/diff/60001/common/alloc_replace.c#newcode5439 common/alloc_replace.c:5439: client_stack_alloc(final_app_xsp - sizeof(void*), final_app_xsp, true/*defined*/); On 2015/12/18 23:42:43, bruening ...
8 years, 4 months ago (2015-12-19 00:15:08 UTC) #13
zhaoqin
So should we just have #0 repeatme #1 main And do not have drfuzz_reallocate... in ...
8 years, 4 months ago (2015-12-19 01:45:51 UTC) #14
bruening
On 2015/12/19 01:45:51, zhaoqin wrote: > So should we just have > #0 repeatme > ...
8 years, 4 months ago (2015-12-19 05:14:16 UTC) #15
zhaoqin
Commit log for latest patchset: --------------- i#1734 Dr. Fuzz: add -fuzz_replace_buffer to support Dr. Fuzz ...
8 years, 4 months ago (2015-12-20 02:00:21 UTC) #16
zhaoqin
8 years, 4 months ago (2015-12-20 02:32:38 UTC) #17
Commit log for latest patchset:
---------------
i#1734 Dr. Fuzz: add -fuzz_replace_buffer to support Dr. Fuzz replacing input
buffer

- add -fuzz_replace_buffer to support allocating input buffer by Dr. Memory
- add drfuzz_reallocate_buffer/drfuzz_free_reallocated_buffer in fuzzer.c to
  alloc/free app memory
- add client_app_malloc and client_app_free in alloc_replace.c
  to allocate app memory from client
- remove mutator_span_empty in fuzz_state
- update load_fuzz_input to replace input buffer if necessary
- update find_target_buffer to replace input buffer if necessary
- add fuzz_buffer.overflow test

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

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