Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion fuzz/src/router.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,8 @@ pub fn do_test<Out: test_logger::Output>(data: &[u8], out: Out) {
let mut reader = &data[..];
match <$MsgType>::read_from_fixed_length_buffer(&mut reader) {
Ok(msg) => {
assert_eq!(reader.len(), $len);
// Check that we read the slice to the end
assert!(reader.is_empty());
msg
},
Err(e) => match e {
Expand Down
Loading