Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
decode: guard against panics when alloc is disabled
The existing code panics if you try to decode a too-large checksum and it fails, which is definitely wrong. Fix this so that FieldVec::from_iter does not panic, allowing the "invalid residue" error to be constructed. There is also a panic when trying to correct too-large checksums. This is arguably permissible, since it's something that's detectable at compile time (though what would be even better is if this language would support telling the compiler to do this; see rust-lang/rust#92827 for more info). But remove it anyway.
- Loading branch information