Fix block addr cache uninitialized issue in aot compiler (#181)

This commit is contained in:
wenyongh 2020-02-27 15:33:56 +08:00 committed by GitHub
parent 7962c47085
commit 4dbe7c44d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,