fix(headers): add length checks to ETag parsing

Bug found using `cargo fuzz`.
This commit is contained in:
Pyfisch
2017-03-05 12:40:06 +01:00
parent d80aae55b1
commit 643fac1e01
2 changed files with 8 additions and 3 deletions

View File

@@ -83,6 +83,9 @@ header! {
test_header!(test14,
vec![b"matched-\"dquotes\""],
None::<ETag>);
test_header!(test15,
vec![b"\""],
None::<ETag>);
}
}