|
|
@@ -69,7 +69,7 @@ print_help()
|
|
|
#endif
|
|
|
printf(" --repl Start a very simple REPL (read-eval-print-loop) mode\n"
|
|
|
" that runs commands in the form of \"FUNC ARG...\"\n");
|
|
|
-#if WASM_CONFIGUABLE_BOUNDS_CHECKS != 0
|
|
|
+#if WASM_CONFIGURABLE_BOUNDS_CHECKS != 0
|
|
|
printf(" --disable-bounds-checks Disable bounds checks for memory accesses\n");
|
|
|
#endif
|
|
|
#if WASM_ENABLE_LIBC_WASI != 0
|
|
|
@@ -571,7 +571,7 @@ main(int argc, char *argv[])
|
|
|
#endif
|
|
|
bool is_repl_mode = false;
|
|
|
bool is_xip_file = false;
|
|
|
-#if WASM_CONFIGUABLE_BOUNDS_CHECKS != 0
|
|
|
+#if WASM_CONFIGURABLE_BOUNDS_CHECKS != 0
|
|
|
bool disable_bounds_checks = false;
|
|
|
#endif
|
|
|
#if WASM_ENABLE_LIBC_WASI != 0
|
|
|
@@ -638,7 +638,7 @@ main(int argc, char *argv[])
|
|
|
else if (!strcmp(argv[0], "--repl")) {
|
|
|
is_repl_mode = true;
|
|
|
}
|
|
|
-#if WASM_CONFIGUABLE_BOUNDS_CHECKS != 0
|
|
|
+#if WASM_CONFIGURABLE_BOUNDS_CHECKS != 0
|
|
|
else if (!strcmp(argv[0], "--disable-bounds-checks")) {
|
|
|
disable_bounds_checks = true;
|
|
|
}
|
|
|
@@ -886,7 +886,7 @@ main(int argc, char *argv[])
|
|
|
goto fail3;
|
|
|
}
|
|
|
|
|
|
-#if WASM_CONFIGUABLE_BOUNDS_CHECKS != 0
|
|
|
+#if WASM_CONFIGURABLE_BOUNDS_CHECKS != 0
|
|
|
if (disable_bounds_checks) {
|
|
|
wasm_runtime_set_bounds_checks(wasm_module_inst, false);
|
|
|
}
|