Search found 9 matches

by TheRealRevK
Thu Jul 08, 2021 1:02 pm
Forum: ESP-IDF
Topic: mbedtls definitely corrupting memory using dynamic buffers
Replies: 0
Views: 1295

mbedtls definitely corrupting memory using dynamic buffers

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. T...
by TheRealRevK
Wed Jun 30, 2021 10:43 am
Forum: ESP-IDF
Topic: TLS memory leak
Replies: 0
Views: 1465

TLS memory leak

ESP IDF commit c13afea635adec735435961270d0894ff46eef85 I have mqtt with reconnect over TLS. However, if the connection fails uncleanly it loses around 5k of RAM and eventually says it cannot connect. Does TLS have a memory leak? E.g. E (2564535) MQTT_CLIENT: mqtt_message_receive: transport_read() e...
by TheRealRevK
Fri Jan 10, 2020 5:49 pm
Forum: ESP IoT Solution
Topic: esp_image: invalid segment length 0xffffffff
Replies: 11
Views: 22022

Re: esp_image: invalid segment length 0xffffffff

FYI, I had this, and it was caused by TCP closing the OTA early on and hence an invalid image, which in turn was caused by low dynamic memory. I only had 15k of free memory and that was not enough - but no clue or warning from debug logs to tell me why TCP had closed the connection!
by TheRealRevK
Thu Aug 29, 2019 12:14 pm
Forum: ESP-IDF
Topic: MQTT client hanging on stop/destroy after connect fail
Replies: 1
Views: 3051

MQTT client hanging on stop/destroy after connect fail

v4.1-dev-104-gaa087667d If MQTT fails to connect (in this case it is cert parse issue), then trying esp_mqtt_client_stop or esp_mqtt_client_destroy just hang! This is how MQTT failed, for reference. Probably my mistake in the cert. [Codebox]E (4543) esp-tls: mbedtls_x509_crt_parse returned -0x2780 E...
by TheRealRevK
Thu Aug 29, 2019 10:33 am
Forum: ESP-IDF
Topic: Cannot build boot loader (esp_efuse_utility_burn_efuses missing esp_clk_apb_freq)
Replies: 8
Views: 8176

Re: Cannot build boot loader (esp_efuse_utility_burn_efuses missing esp_clk_apb_freq)

I did a pull, and now v4.1-dev-104-gaa087667d

make menuconfig now broken!
clang: error: unknown argument: '-n'
by TheRealRevK
Mon Aug 26, 2019 7:48 pm
Forum: ESP-IDF
Topic: Cannot build boot loader (esp_efuse_utility_burn_efuses missing esp_clk_apb_freq)
Replies: 8
Views: 8176

Cannot build boot loader (esp_efuse_utility_burn_efuses missing esp_clk_apb_freq)

I am trying to get secure boot working. I did this originally with no problem, but have since re-installed as per (stable) instructions on both Mac and Linux and both give me an error making bootloader. [Codebox] build/bootloader/efuse/libefuse.a(esp_efuse_utility.o):(.literal.esp_efuse_utility_burn...