mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-13 02:28:09 +00:00
Fix variable name
This commit is contained in:
@ -40,7 +40,7 @@ void afl_custom_init(unsigned int seed) {
|
|||||||
* @return Size of the mutated output.
|
* @return Size of the mutated output.
|
||||||
*/
|
*/
|
||||||
size_t afl_custom_fuzz(uint8_t *buf, size_t buf_size,
|
size_t afl_custom_fuzz(uint8_t *buf, size_t buf_size,
|
||||||
uint8_t *add_buf,size_t add_buf_size, // add_buf can be NULL
|
uint8_t *add_buf,size_t add_buf_size,
|
||||||
uint8_t *mutated_out, size_t max_size) {
|
uint8_t *mutated_out, size_t max_size) {
|
||||||
|
|
||||||
// Make sure that the packet size does not exceed the maximum size expected by
|
// Make sure that the packet size does not exceed the maximum size expected by
|
||||||
@ -53,7 +53,7 @@ size_t afl_custom_fuzz(uint8_t *buf, size_t buf_size,
|
|||||||
// Mutate the payload of the packet
|
// Mutate the payload of the packet
|
||||||
for (int i = 3; i < mutated_size; i++) {
|
for (int i = 3; i < mutated_size; i++) {
|
||||||
|
|
||||||
mutated_out[i] = (data[i] + rand() % 10) & 0xff;
|
mutated_out[i] = (buf[i] + rand() % 10) & 0xff;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -89,10 +89,10 @@ size_t afl_custom_pre_save(uint8_t *buf, size_t buf_size, uint8_t **out_buf) {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
uint8_t *trim_buf;
|
static uint8_t *trim_buf;
|
||||||
size_t trim_buf_size
|
static size_t trim_buf_size;
|
||||||
int trimmming_steps;
|
static int trimmming_steps;
|
||||||
int cur_step;
|
static int cur_step;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This method is called at the start of each trimming operation and receives
|
* This method is called at the start of each trimming operation and receives
|
||||||
|
Reference in New Issue
Block a user