interledger / interledger-rs

An easy-to-use, high-performance Interledger implementation written in Rust
http://interledger.rs
Other
201 stars 70 forks source link

Fix interledger-packet::ErrorCode too lenient parsing #716

Closed koivunej closed 3 years ago

koivunej commented 3 years ago

Found this crash stashed away, which wasn't because of ErrorCode or parsing, but because of too strict fuzz_target. This PR fixes:

There's some churn related to the roundtrip test fn being added and removed, but I'll follow up with a better fuzz/fuzz_targets/packet.rs after this PR.

Cc: #705

koivunej commented 3 years ago

Oki, a few force pushes later, I think this is ready to go :)