mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-18 20:48:07 +00:00
fix reallocs
This commit is contained in:
@ -704,12 +704,11 @@ static inline void *afl_realloc(void **buf, size_t size_needed) {
|
||||
*buf = NULL;
|
||||
return NULL;
|
||||
|
||||
} else {
|
||||
|
||||
new_buf = newer_buf;
|
||||
|
||||
}
|
||||
|
||||
new_buf = newer_buf;
|
||||
memset(((u8 *)new_buf) + current_size, 0, next_size - current_size);
|
||||
|
||||
new_buf->complete_size = next_size;
|
||||
*buf = (void *)(new_buf->buf);
|
||||
return *buf;
|
||||
|
Reference in New Issue
Block a user