Skip to content

Commit 3ca60f9

Browse files
committed
use DEFAULT_AUX_BUFFER_SIZE for the default size
1 parent 58f1467 commit 3ca60f9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

crates/libafl_nyx/src/settings.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ use alloc::borrow::Cow;
55
use typed_builder::TypedBuilder;
66

77
const DEFAULT_INPUT_BUFFER_SIZE: usize = 1024 * 1024;
8+
const DEFAULT_AUX_BUFFER_SIZE: usize = 4096;
89
const DEFAULT_TIMEOUT_SECS: u8 = 2;
910
const DEFAULT_TIMEOUT_MICRO_SECS: u32 = 0;
1011
const DEFAULT_SNAP_MODE: bool = true;
@@ -45,7 +46,8 @@ pub struct NyxSettings {
4546
pub timeout_secs: u8,
4647

4748
/// The output buffer size (in bytes) used to record the stdout/stderr messages
48-
#[builder(default = 32768)]
49+
/// Must be a multiple of 4KB!!!
50+
#[builder(default = DEFAULT_AUX_BUFFER_SIZE)]
4951
pub aux_buffer_size: usize,
5052

5153
/// Additional timeout in microseconds that gets added to

0 commit comments

Comments
 (0)