Fix compilation errors on esp-idf platform (#3224)

The issue was reported in #3208.
This commit is contained in:
Wenyong Huang
2024-03-14 21:31:44 +08:00
committed by GitHub
parent de803b2beb
commit 5e2011ca1d
5 changed files with 17 additions and 5 deletions

View File

@ -426,7 +426,7 @@ sprintf_wrapper(wasm_exec_env_t exec_env, char *str, const char *format,
if (!wasm_runtime_get_native_addr_range(module_inst, (uint8 *)str, NULL,
&native_end_offset)) {
wasm_runtime_set_exception(module_inst, "out of bounds memory access");
return false;
return 0;
}
ctx.str = str;