diff --git a/polkadot/parachain/src/wasm_executor.rs b/polkadot/parachain/src/wasm_executor.rs index c86438290e..402fd936e5 100644 --- a/polkadot/parachain/src/wasm_executor.rs +++ b/polkadot/parachain/src/wasm_executor.rs @@ -230,6 +230,9 @@ pub fn validate_candidate( }; // allocate call data in memory. + // we guarantee that: + // - `offset` has alignment at least of 8, + // - `len` is not zero. let (offset, len) = { let encoded_call_data = params.encode();