@@ -574,7 +574,7 @@ load_table_init_data_list(const uint8 **p_buf, const uint8 *buf_end,
574574 data_list [i ]-> offset .init_expr_type = (uint8 )init_expr_type ;
575575 data_list [i ]-> offset .u .i64 = (int64 )init_expr_value ;
576576 data_list [i ]-> func_index_count = func_index_count ;
577- read_byte_array (buf , buf_end , data_list [i ]-> func_indexes , size1 );
577+ read_byte_array (buf , buf_end , data_list [i ]-> func_indexes , ( uint32 ) size1 );
578578 }
579579
580580 * p_buf = buf ;
@@ -1444,15 +1444,15 @@ do_text_relocation(AOTModule *module,
14441444 bh_memcpy_s (xmm_buf , sizeof (xmm_buf ),
14451445 symbol + strlen (XMM_PLT_PREFIX ) + 16 , 16 );
14461446 if (!str2uint64 (xmm_buf , (uint64 * )symbol_addr )) {
1447- set_error_buf_v (error_buf , error_buf ,
1447+ set_error_buf_v (error_buf , error_buf_size ,
14481448 "resolve symbol %s failed" , symbol );
14491449 goto check_symbol_fail ;
14501450 }
14511451
14521452 bh_memcpy_s (xmm_buf , sizeof (xmm_buf ),
14531453 symbol + strlen (XMM_PLT_PREFIX ), 16 );
14541454 if (!str2uint64 (xmm_buf , (uint64 * )((uint8 * )symbol_addr + 8 ))) {
1455- set_error_buf_v (error_buf , error_buf ,
1455+ set_error_buf_v (error_buf , error_buf_size ,
14561456 "resolve symbol %s failed" , symbol );
14571457 goto check_symbol_fail ;
14581458 }
@@ -1468,7 +1468,7 @@ do_text_relocation(AOTModule *module,
14681468 bh_memcpy_s (real_buf , sizeof (real_buf ),
14691469 symbol + strlen (REAL_PLT_PREFIX ), 16 );
14701470 if (!str2uint64 (real_buf , (uint64 * )symbol_addr )) {
1471- set_error_buf_v (error_buf , error_buf ,
1471+ set_error_buf_v (error_buf , error_buf_size ,
14721472 "resolve symbol %s failed" , symbol );
14731473 goto check_symbol_fail ;
14741474 }
@@ -1484,7 +1484,7 @@ do_text_relocation(AOTModule *module,
14841484 bh_memcpy_s (float_buf , sizeof (float_buf ),
14851485 symbol + strlen (REAL_PLT_PREFIX ), 8 );
14861486 if (!str2uint32 (float_buf , (uint32 * )symbol_addr )) {
1487- set_error_buf_v (error_buf , error_buf ,
1487+ set_error_buf_v (error_buf , error_buf_size ,
14881488 "resolve symbol %s failed" , symbol );
14891489 goto check_symbol_fail ;
14901490 }
@@ -2306,7 +2306,8 @@ aot_load_from_comp_data(AOTCompData *comp_data, AOTCompContext *comp_ctx,
23062306 goto fail1 ;
23072307 }
23082308
2309- bh_memcpy_s (module -> memories , size , comp_data -> memories , size );
2309+ bh_memcpy_s (module -> memories , (uint32 )size ,
2310+ comp_data -> memories , (uint32 )size );
23102311 }
23112312
23122313 module -> mem_init_data_list = comp_data -> mem_init_data_list ;
0 commit comments