Skip to content

Commit

Permalink
Fix block addr cache uninitialized issue in aot compiler (#181)
Browse files Browse the repository at this point in the history
  • Loading branch information
wenyongh authored Feb 27, 2020
1 parent 7962c47 commit 4dbe7c4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/iwasm/compilation/aot_emit_control.c
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,8 @@ aot_compile_op_block(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx,
return false;
}

memset(block_addr_cache, 0, sizeof(block_addr_cache));

/* Get block info */
if (!(wasm_loader_find_block_addr((BlockAddr*)block_addr_cache,
*p_frame_ip, frame_ip_end, (uint8)block_type,
Expand Down

0 comments on commit 4dbe7c4

Please sign in to comment.