Page 1 of 1

mbedtls definitely corrupting memory using dynamic buffers

Posted: Thu Jul 08, 2021 1:02 pm
by TheRealRevK
Cloned new esp-idf lastest today 2021-08-21, git show says commit c13afea635adec735435961270d0894ff46eef85

I have tracked down to esp-idf/components/mbedtls/port/dynamic/esp_mbedtls_dynamic_impl.c line 380
Allocates 637 bytes in my case, when freed there is data written past the end of the buffer.

Turning off dynamic buffers fixes.