diff options
author | vanhauser-thc <vh@thc.org> | 2023-01-18 22:31:55 +0100 |
---|---|---|
committer | vanhauser-thc <vh@thc.org> | 2023-01-18 22:31:55 +0100 |
commit | 17752465e6b3c70fd0104fae7bb1f84c1cb8bb66 (patch) | |
tree | 1a0d515a55b47c3d2e6d3a1a9f8115972d6e042f /custom_mutators/autotokens/autotokens.cpp | |
parent | 14d8eb9e40a6329abcb2f153174b543349c68c13 (diff) | |
download | afl++-17752465e6b3c70fd0104fae7bb1f84c1cb8bb66.tar.gz |
nit
Diffstat (limited to 'custom_mutators/autotokens/autotokens.cpp')
-rw-r--r-- | custom_mutators/autotokens/autotokens.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/custom_mutators/autotokens/autotokens.cpp b/custom_mutators/autotokens/autotokens.cpp index c9ec4352..5e683455 100644 --- a/custom_mutators/autotokens/autotokens.cpp +++ b/custom_mutators/autotokens/autotokens.cpp @@ -217,11 +217,8 @@ extern "C" size_t afl_custom_fuzz(my_mutator_t *data, u8 *buf, size_t buf_size, MIN(m_size - dst_off - AUTOTOKENS_SPLICE_MIN, src_size - src_off - AUTOTOKENS_SPLICE_MIN))); - for (u32 i = 0; i < n; ++i) { - - m[dst_off + i] = (*src)[src_off + i]; - - } + copy(src->begin() + src_off, src->begin() + src_off + n, + m.begin() + dst_off); DEBUG(stderr, "SPLICE-MUT: %u at %u\n", n, dst_off); break; |