Closed algesten closed 3 years ago
Doing some fuzzing I encountered this:
let uri = "http://[]@["; let uri = uri.parse::<http::Uri>().unwrap(); // is ok uri.host(); // panics
The panic is parsing should validate brackets and come from here: https://github.com/hyperium/http/blob/v0.2.1/src/uri/authority.rs#L486
parsing should validate brackets
I expect this to surface as an Err and panic on .unwrap().
Err
.unwrap()
Yep, this looks wrong. Thanks for reporting!
Doing some fuzzing I encountered this:
The panic is
parsing should validate brackets
and come from here: https://github.com/hyperium/http/blob/v0.2.1/src/uri/authority.rs#L486I expect this to surface as an
Err
and panic on.unwrap()
.