An issue was discovered in the iced-x86 crate through 1.10.3 for Rust. In Decoder::new(), slice.get_unchecked(slice.length()) is used…
mitre·NVD-CWE-noinfo·Published 2021-08-08
Versions of iced-x86 <= 1.10.3 invoke undefined behavior which may cause soundness issues in crates using the `iced_x86::Decoder` struct. The `Decoder::new()` function made a call to `slice.get_unchecked(slice.length())` to get the end position of the input buffer. The flaw was fixed with safe logic that does not invoke undefined behavior. More details can be found at <https://github.com/icedland/iced/issues/168>.