diff options
author | Maik Betka <9078425+voidptr127@users.noreply.github.com> | 2023-04-17 17:09:48 +0200 |
---|---|---|
committer | Maik Betka <9078425+voidptr127@users.noreply.github.com> | 2023-04-17 17:09:48 +0200 |
commit | 450dbae8cd2ae278e0b381d172cb7694f40278cb (patch) | |
tree | 3235b4a6263c756d435139a6b3fd2d03d66bba1e /src/afl-fuzz-run.c | |
parent | a3bc8d3440acefb7168c849337e4a4841bf11c3d (diff) | |
download | afl++-450dbae8cd2ae278e0b381d172cb7694f40278cb.tar.gz |
first version with unix domain sockets is ready for testing
Diffstat (limited to 'src/afl-fuzz-run.c')
-rw-r--r-- | src/afl-fuzz-run.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/afl-fuzz-run.c b/src/afl-fuzz-run.c index ee4a3298..26a1ea36 100644 --- a/src/afl-fuzz-run.c +++ b/src/afl-fuzz-run.c @@ -130,12 +130,15 @@ write_to_testcase(afl_state_t *afl, void **mem, u32 len, u32 fix) { new_size = afl->max_length; } - - if (new_mem != *mem) { *mem = new_mem; } + // TODO: think about how to enable the change without breaking other implementations + // if (new_mem != *mem) { *mem = new_mem; } /* everything as planned. use the potentially new data. */ - afl_fsrv_write_to_testcase(&afl->fsrv, *mem, new_size); - len = new_size; + // TODO: think about how to enable the change without breaking other implementations + afl_fsrv_write_to_testcase(&afl->fsrv, new_mem, new_size); + + // TODO: think about how to enable the change without breaking other implementations + // len = new_size; } else { |