S32K144:mbedtls

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

S32K144:mbedtls

730 次查看
v_wujie02
Contributor I

Hi:

When I transplanted mbedtls on S32K144, the verify of ECDSA was unsuccessful. The problem of malloc () function is found after debugging. In lines 499 to 501 of the alloc.c file, the tail pointer was not modified when the last two blocks of the heap list were attempted to merge. So the reallocation heap block can not be linked to the heap list, resulting in a large amount of heap allocation.

So I think the code should be modified as follows:

#if HEAP_GROWS
//if ((look_ahd != NULL) && (look_ahd->lnk == NULL)) {
tail = &p->lnk;
//}
#endif

标记 (1)
0 项奖励
0 回复数