Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix panic caused by a malformed input
Converting from bytes to a Packet struct can fail and the unwrap will cause a panic. All other lines use `?.into()` - which fixes the issue. An example of a malformed input would be: `0x23,0xc,0xfd,0x0,0x0,0x0,0x0,0x0,0x0,0x2a,0x0,0x0,0x0,0x0` Found using `cargo-fuzz.`
- Loading branch information