Closed kailes closed 1 year ago
If you add these additional cases to the tests, they hang without this fix.
#[test] fn test_get_unknown() { let buf = []; assert!(crate::get(&buf).is_none()); // new cases: let buf = [0x31]; assert!(crate::get(&buf).is_none()); let buf = [0x31, 0x32]; assert!(crate::get(&buf).is_none()); }
@bojand Hi, have some time to review this?
Hello, thanks for the PR. This should be available in v0.12.0.
If you add these additional cases to the tests, they hang without this fix.