mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-11-27 18:11:21 +00:00
Fix handling of non-nullable global_type during global import (#4408)
This commit is contained in:
parent
1e41519977
commit
535004dedc
|
|
@ -3351,7 +3351,8 @@ load_import_section(const uint8 *buf, const uint8 *buf_end, WASMModule *module,
|
||||||
/* valtype */
|
/* valtype */
|
||||||
CHECK_BUF(p, p_end, 1);
|
CHECK_BUF(p, p_end, 1);
|
||||||
global_type = read_uint8(p);
|
global_type = read_uint8(p);
|
||||||
if (wasm_is_reftype_htref_nullable(global_type)) {
|
if (wasm_is_reftype_htref_nullable(global_type)
|
||||||
|
|| wasm_is_reftype_htref_non_nullable(global_type)) {
|
||||||
int32 heap_type;
|
int32 heap_type;
|
||||||
read_leb_int32(p, p_end, heap_type);
|
read_leb_int32(p, p_end, heap_type);
|
||||||
(void)heap_type;
|
(void)heap_type;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user