Skip to content

Commit 978492a

Browse files
committed
Add failing test
1 parent 7e0e56f commit 978492a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/deflate/decode.rs

+7
Original file line numberDiff line numberDiff line change
@@ -199,4 +199,11 @@ mod tests {
199199
assert_eq!(error.kind(), io::ErrorKind::InvalidData);
200200
assert!(error.to_string().starts_with("Too long backword reference"));
201201
}
202+
203+
#[test]
204+
fn test_issue_64() {
205+
let input = b"\x04\x04\x04\x05:\x1az*\xfc\x06\x01\x90\x01\x06\x01";
206+
let mut decoder = Decoder::new(&input[..]);
207+
assert!(io::copy(&mut decoder, &mut io::sink()).is_err());
208+
}
202209
}

0 commit comments

Comments
 (0)