Fix typo of WAMR_CONFIGUABLE_BOUNDS_CHECKS (#3424)
Change to WAMR_CONFIGURABLE_BOUNDS_CHECKS, and fix CodeQL compilation errors which were introduced by PR #3406. ps. https://github.com/bytecodealliance/wasm-micro-runtime/pull/3393#discussion_r1591810998 https://github.com/bytecodealliance/wasm-micro-runtime/actions/runs/9055318553/job/24876266629
This commit is contained in:
@ -475,8 +475,8 @@ load_init_expr(WASMModule *module, const uint8 **p_buf, const uint8 *buf_end,
|
||||
global_idx = cur_value.global_index;
|
||||
|
||||
bh_assert(global_idx < module->import_global_count);
|
||||
bh_assert(
|
||||
!module->import_globals[global_idx].u.global.is_mutable);
|
||||
bh_assert(!module->import_globals[global_idx]
|
||||
.u.global.type.is_mutable);
|
||||
|
||||
if (global_idx < module->import_global_count) {
|
||||
global_type = module->import_globals[global_idx]
|
||||
@ -796,8 +796,8 @@ load_global_import(const uint8 **p_buf, const uint8 *buf_end,
|
||||
ret = wasm_native_lookup_libc_builtin_global(sub_module_name, global_name,
|
||||
global);
|
||||
if (ret) {
|
||||
bh_assert(global->type == declare_type
|
||||
&& global->is_mutable != declare_mutable);
|
||||
bh_assert(global->type.val_type == declare_type
|
||||
&& global->type.is_mutable != declare_mutable);
|
||||
}
|
||||
#endif /* WASM_ENABLE_LIBC_BUILTIN */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user