Skip to content

Commit b66f3ae

Browse files
committed
fuzz: fix e2e MockIo reading too much for the buffer
1 parent 47d107a commit b66f3ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fuzz/fuzz_targets/fuzz_e2e.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ impl<'a> AsyncRead for MockIo<'a> {
5252
if len > buf.remaining() {
5353
len = buf.remaining();
5454
}
55-
buf.put_slice(&self.input[len..]);
55+
buf.put_slice(&self.input[..len]);
5656
self.input = &self.input[len..];
5757
Poll::Ready(Ok(()))
5858
}

0 commit comments

Comments
 (0)