mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-10 17:21:33 +00:00
Removed unused byte in allocation
This commit is contained in:
parent
bedd812e7b
commit
c8e6a59e7d
@ -101,7 +101,7 @@ extern "C" size_t afl_custom_fuzz(MyMutator *mutator, // return value from afl_c
|
|||||||
size_t mutated_size = s.size() <= max_size ? s.size() : max_size; // check if raw data's size is larger than max_size
|
size_t mutated_size = s.size() <= max_size ? s.size() : max_size; // check if raw data's size is larger than max_size
|
||||||
|
|
||||||
delete[] mutator->mutated_out;
|
delete[] mutator->mutated_out;
|
||||||
mutator->mutated_out = new uint8_t[mutated_size+1];
|
mutator->mutated_out = new uint8_t[mutated_size];
|
||||||
memcpy(mutator->mutated_out, s.c_str(), mutated_size); // copy the mutated data
|
memcpy(mutator->mutated_out, s.c_str(), mutated_size); // copy the mutated data
|
||||||
// Assign the mutated data and return mutated_size
|
// Assign the mutated data and return mutated_size
|
||||||
*out_buf = mutator->mutated_out;
|
*out_buf = mutator->mutated_out;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user