mbedtls_x509_crt_verify failure - not enough memory
I am running mbedtls version 2.6.0 on a memory limited ARM Cortex M0. I use the memory buffer allocation system so I can gauged memory usage. I have found that if I don't have a big enough memory buffer that the mbedtls_x509_crt_verify function fails, but not with a memory allocation error. Is this a bug? It sure made debugging harder.
Thank you for your query.
I believe this open issue describes your issue.
Mbed TLS Team member