S32K144:mbedtls

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

S32K144:mbedtls

685 Views
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

Tags (1)
0 Kudos
0 Replies