diff options
author | Vitalii Akolzin <vva1994@ispras.ru> | 2020-09-24 18:50:59 +0300 |
---|---|---|
committer | Vitalii Akolzin <vva1994@ispras.ru> | 2020-09-24 18:50:59 +0300 |
commit | a75e7594f78454a11e3d93b3cb4878a21e4e943f (patch) | |
tree | 93d12e121b38fc4c42832df989ee8a608562a267 /src | |
parent | 888d63748a3c6aafd974cb9d96cdb8d3916e82bb (diff) | |
download | afl++-a75e7594f78454a11e3d93b3cb4878a21e4e943f.tar.gz |
Add comments
Co-authored-by: Ivan Gulakov <gulakov@ispras.ru>
Diffstat (limited to 'src')
-rw-r--r-- | src/afl-fuzz-one.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/afl-fuzz-one.c b/src/afl-fuzz-one.c index edae2a88..8c1aa179 100644 --- a/src/afl-fuzz-one.c +++ b/src/afl-fuzz-one.c @@ -1699,6 +1699,9 @@ custom_mutator_stage: u8 * new_buf = NULL; u32 target_len = 0; + /* check if splicing is possible (if the only entry has len > 1 + * check it is not current entry) + */ if (afl->ready_for_splicing_count > 1 || (afl->ready_for_splicing_count == 1 && afl->queue_cur->len == 1)) { @@ -2769,7 +2772,7 @@ static u8 mopt_common_fuzzing(afl_state_t *afl, MOpt_globals_t MOpt_globals) { len = afl->queue_cur->len; - /* maybe current entry stop being ready for splicing */ + /* maybe current entry is not ready for splicing anymore */ if (old_len > 1 && afl->queue_cur->len == 1) afl->ready_for_splicing_count--; |