fix fuzzbench cmplog ForkServer builder and rtn_extend_encoding buffer copy overflow (#3270)
This commit is contained in:
parent
ce63b76558
commit
9a202acfed
@ -365,6 +365,7 @@ fn fuzz(
|
||||
.debug_child(debug_child)
|
||||
.shmem_provider(&mut shmem_provider)
|
||||
.parse_afl_cmdline(arguments)
|
||||
.coverage_map_size(MAP_SIZE)
|
||||
.is_persistent(true)
|
||||
.timeout(timeout * 10)
|
||||
.kill_signal(signal)
|
||||
|
@ -369,6 +369,7 @@ fn fuzz(
|
||||
.debug_child(debug_child)
|
||||
.shmem_provider(&mut shmem_provider)
|
||||
.parse_afl_cmdline(arguments)
|
||||
.coverage_map_size(MAP_SIZE)
|
||||
.is_persistent(true)
|
||||
// increase timeouts for cmplog
|
||||
.timeout(timeout * 10)
|
||||
|
@ -1301,9 +1301,11 @@ impl AflppRedQueen {
|
||||
if copy_len > 0 {
|
||||
unsafe {
|
||||
for l in 1..=copy_len {
|
||||
let mut cloned = buf.to_vec();
|
||||
buffer_copy(&mut cloned, repl, 0, buf_idx, l);
|
||||
vec.push(cloned);
|
||||
if l <= repl.len() {
|
||||
let mut cloned = buf.to_vec();
|
||||
buffer_copy(&mut cloned, repl, 0, buf_idx, l);
|
||||
vec.push(cloned);
|
||||
}
|
||||
}
|
||||
// vec.push(cloned);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user