wasm-micro-runtime/core/iwasm/interpreter
Wenyong Huang 18d363029c
wasm loader: Fix checks for opcode ref.func and opcode else (#3340)
Fix wasm loader integrity checks for opcode ref.func and opcode else:
for opcode ref.func, the function must be an import, exported, or present in a
table elem segment or global initializer to be used as the operand to ref.func,
for opcode else, there must not be an else opcode previously.

Reported in #3336 and #3337.

And fix mini loader PUSH_MEM_OFFSET/POP_MEM_OFFSET macro
definitions due to the introducing of memory64 feature.
2024-04-22 14:44:45 +08:00
..
iwasm_interp.cmake Implement wasm mini loader and refine footprint of loader and runtime (#276) 2020-06-08 11:19:09 +08:00
SConscript add porting codes of rt-thread (#494) 2021-01-14 11:26:35 +08:00
wasm_interp_classic.c Fix windows relocation string parsing issue (#3333) 2024-04-19 16:09:03 +08:00
wasm_interp_fast.c Enhance GC subtyping checks (#3317) 2024-04-18 12:32:01 +08:00
wasm_interp.h Implement GC (Garbage Collection) feature for interpreter, AOT and LLVM-JIT (#3125) 2024-02-06 20:47:11 +08:00
wasm_loader.c wasm loader: Fix checks for opcode ref.func and opcode else (#3340) 2024-04-22 14:44:45 +08:00
wasm_loader.h Enhance wasm loading with LoadArgs and support module names (#3265) 2024-04-07 15:04:35 +08:00
wasm_mini_loader.c wasm loader: Fix checks for opcode ref.func and opcode else (#3340) 2024-04-22 14:44:45 +08:00
wasm_opcode.h Sync simd opcode definitions spec (#3290) 2024-04-09 16:54:42 +08:00
wasm_runtime.c Allow executing malloc/free from native in memory64 mode (#3315) 2024-04-19 17:15:54 +08:00
wasm_runtime.h Enhance GC subtyping checks (#3317) 2024-04-18 12:32:01 +08:00
wasm.h Enhance GC subtyping checks (#3317) 2024-04-18 12:32:01 +08:00