Skip to content

Commit 96f8169

Browse files
authored
libafl_nyx: fix stdout cursor position after set_len() (AFLplusplus#3481)
* fix cursor update * FMT
1 parent 4f7b064 commit 96f8169

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

crates/libafl_nyx/src/executor.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ where
7272
.nyx_stdout
7373
.set_len(0)
7474
.map_err(|e| Error::illegal_state(format!("Failed to clear Nyx stdout: {e}")))?;
75+
self.helper.nyx_stdout.rewind()?;
7576

7677
let size = u32::try_from(buffer.len())
7778
.map_err(|_| Error::unsupported("Inputs larger than 4GB are not supported"))?;

0 commit comments

Comments
 (0)