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)
|
.debug_child(debug_child)
|
||||||
.shmem_provider(&mut shmem_provider)
|
.shmem_provider(&mut shmem_provider)
|
||||||
.parse_afl_cmdline(arguments)
|
.parse_afl_cmdline(arguments)
|
||||||
|
.coverage_map_size(MAP_SIZE)
|
||||||
.is_persistent(true)
|
.is_persistent(true)
|
||||||
.timeout(timeout * 10)
|
.timeout(timeout * 10)
|
||||||
.kill_signal(signal)
|
.kill_signal(signal)
|
||||||
|
@ -369,6 +369,7 @@ fn fuzz(
|
|||||||
.debug_child(debug_child)
|
.debug_child(debug_child)
|
||||||
.shmem_provider(&mut shmem_provider)
|
.shmem_provider(&mut shmem_provider)
|
||||||
.parse_afl_cmdline(arguments)
|
.parse_afl_cmdline(arguments)
|
||||||
|
.coverage_map_size(MAP_SIZE)
|
||||||
.is_persistent(true)
|
.is_persistent(true)
|
||||||
// increase timeouts for cmplog
|
// increase timeouts for cmplog
|
||||||
.timeout(timeout * 10)
|
.timeout(timeout * 10)
|
||||||
|
@ -1301,9 +1301,11 @@ impl AflppRedQueen {
|
|||||||
if copy_len > 0 {
|
if copy_len > 0 {
|
||||||
unsafe {
|
unsafe {
|
||||||
for l in 1..=copy_len {
|
for l in 1..=copy_len {
|
||||||
let mut cloned = buf.to_vec();
|
if l <= repl.len() {
|
||||||
buffer_copy(&mut cloned, repl, 0, buf_idx, l);
|
let mut cloned = buf.to_vec();
|
||||||
vec.push(cloned);
|
buffer_copy(&mut cloned, repl, 0, buf_idx, l);
|
||||||
|
vec.push(cloned);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// vec.push(cloned);
|
// vec.push(cloned);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user