We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f13bc80 commit 4b42cfdCopy full SHA for 4b42cfd
core/iwasm/common/wasm_runtime_common.c
@@ -582,7 +582,7 @@ wasm_runtime_env_init(void)
582
static bool
583
wasm_runtime_exec_env_check(WASMExecEnv *exec_env)
584
{
585
- return exec_env && exec_env->module_inst && exec_env->wasm_stack_size > 0
+ return exec_env && exec_env->module_inst
586
&& exec_env->wasm_stack.top_boundary
587
== exec_env->wasm_stack.bottom + exec_env->wasm_stack_size
588
&& exec_env->wasm_stack.top <= exec_env->wasm_stack.top_boundary;
0 commit comments