martinthomson / ohttp

Rust library for encapsulating HTTP messages in a cryptographic wrapper
Apache License 2.0
22 stars 16 forks source link

split_at can panic #39

Closed mozkeeler closed 1 year ago

mozkeeler commented 1 year ago

split_at panics if the slice isn't long enough for the given index. We should check the length before calling it.

martinthomson commented 1 year ago

Good point. I made the last test without considering that path. I think that I got all of these now.