Webassembly Micro Runtime
The two-pass fast interpreter loader in core/iwasm/interpreter/wasm loader.c can make inconsistent constant-table decisions between the sizing pass and the emitting pass. When duplicate constants inflate the first pass beyond the constant-slot limit, the `wasm loader get const offset` function emits later constants inline. However, subsequent sorting and deduplication reduce the table, leading the second pass to choose table references. This causes `reserve block ret` to emit additional copy operands not accounted for in `code compiled peak size`. Consequently, a crafted module can trigger the second pass to write partially attacker-controlled compiled-code data beyond the heap buffer allocated during `wasm runtime load` before guest code executes. This can corrupt host heap metadata and crash the process, resulting in a denial of service.