[core] fix bug in executing ext::scratch_read causing panic

10 jobs for 191 in 1 minute and 5 seconds (queued for 3 minutes and 37 seconds)
Status Job ID Name Coverage
  Check Workspace
failed #265760
linux-docker
cargo-build-nf

00:00:17

failed #265754
linux-docker
cargo-check-af

00:00:31

failed #265755
linux-docker
cargo-check-nf

00:00:22

failed #265757
linux-docker
cargo-clippy-af

00:00:17

failed #265758
linux-docker
cargo-clippy-nf

00:00:21

failed #265756
linux-docker
cargo-fmt

00:00:22

failed #265759
linux-docker
cargo-test-af

00:00:18

 
  Examples
skipped #265763
linux-docker
examples-abi
skipped #265762
linux-docker
examples-test
skipped #265761
linux-docker
examples-wasm
 
Name Stage Failure
failed
cargo-build-nf Check Workspace
No job log
failed
cargo-test-af Check Workspace
No job log
failed
cargo-clippy-nf Check Workspace
No job log
failed
cargo-clippy-af Check Workspace
No job log
failed
cargo-fmt Check Workspace
No job log
failed
cargo-check-nf Check Workspace
No job log
failed
cargo-check-af Check Workspace
No job log