mirror of
https://github.com/fluencelabs/wasmer
synced 2025-06-28 16:11:32 +00:00
The index is bound to `u32::max_value()`. The invocation inputs' length is bound to `usize::max_value()`, which can be `u64::max_value`. Consequently, casting the invocation inputs' length to `u32` can lead to an integer overflow. It is better to cast `index` to `usize` when comparing with the invocation inputs' length.