Skip to content

Commit 4dbe7c4

Browse files
authored
Fix block addr cache uninitialized issue in aot compiler (#181)
1 parent 7962c47 commit 4dbe7c4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

core/iwasm/compilation/aot_emit_control.c

+2
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,8 @@ aot_compile_op_block(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx,
197197
return false;
198198
}
199199

200+
memset(block_addr_cache, 0, sizeof(block_addr_cache));
201+
200202
/* Get block info */
201203
if (!(wasm_loader_find_block_addr((BlockAddr*)block_addr_cache,
202204
*p_frame_ip, frame_ip_end, (uint8)block_type,

0 commit comments

Comments
 (0)