Skip to content

Commit 4d9a895

Browse files
authored
libafl_nyx: make aux_buffer_size configurable (#3549)
1 parent 0611920 commit 4d9a895

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

crates/libafl_nyx/src/helper.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ impl NyxHelper {
4545
Error::illegal_argument(format!("Failed to load Nyx config from share dir: {e}"))
4646
})?;
4747
nyx_config.set_input_buffer_size(settings.input_buffer_size);
48+
nyx_config.set_aux_buffer_size(settings.aux_buffer_size);
4849
nyx_config.set_process_role(match settings.parent_cpu_id {
4950
None => NyxProcessRole::StandAlone,
5051
Some(parent_cpu_id) if parent_cpu_id == settings.cpu_id => NyxProcessRole::Parent,

crates/libafl_nyx/src/settings.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ pub struct NyxSettings {
4444
#[builder(default = DEFAULT_TIMEOUT_SECS)]
4545
pub timeout_secs: u8,
4646

47+
/// The output buffer size (in bytes) used to record the stdout/stderr messages
48+
#[builder(default = 32768)]
49+
pub aux_buffer_size: usize,
50+
4751
/// Additional timeout in microseconds that gets added to
4852
/// `timeout_secs`.
4953
#[builder(default = DEFAULT_TIMEOUT_MICRO_SECS)]

0 commit comments

Comments
 (0)