Open
Description
While trying to add integration tests for the person detection rune in #128 I noticed that we get an out-of-bounds memory access in just the mac build.
$ rune run person_detection.rune --capability image:examples/person_detection/image_grayscale.png
[2021-04-28T08:57:09.330Z INFO rune::run] Running rune: /var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/.tmpCzTqas/person_detection.rune
[2021-04-28T08:57:09.330Z DEBUG rune::run] Loading an image from \"/Users/runner/work/rune/rune/examples/person_detection/image_grayscale.png\"
[2021-04-28T08:57:10.381Z DEBUG rune_wasmer_runtime] Loading image
[2021-04-28T08:57:10.381Z DEBUG rune_wasmer_runtime] Instantiating the WebAssembly module
[2021-04-28T08:57:10.385Z DEBUG rune_wasmer_runtime] Loaded the Rune
[2021-04-28T08:57:10.385Z DEBUG rune_wasmer_runtime] Running the rune
Error: Call failed
Caused by:
0: Unable to call the _call function
1: RuntimeError: out of bounds memory access
2: heap_get_oob
See this GitHub Actions run for more.