Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Self-signed certificate HEAP memory issue #186

Open
alexair777 opened this issue Nov 18, 2024 · 0 comments
Open

Self-signed certificate HEAP memory issue #186

alexair777 opened this issue Nov 18, 2024 · 0 comments

Comments

@alexair777
Copy link

alexair777 commented Nov 18, 2024

hi there,

I tried the code self-signed certificate based on the fork: (https://github.com/jackjansen/esp32_idf5_https_server) on a ESP32s3.

Using a keysize of 1024 bit leads to the following error:
assert failed: heap_caps_free heap_caps_base.c:63 (heap != NULL && "free() target pointer is outside heap areas")

Using it with a keysize of 2048 bit leads to the following error:
CORRUPT HEAP: Bad tail at 0x3fcecc00. Expected 0xbaad5678 got 0x3fceca88
assert failed: multi_heap_free multi_heap_poisoning.c:276 (head != NULL)

What is the reason for this issues?
I checked the free heap memory (heap_caps_get_free_size(MALLOC_CAP_DEFAULT)) before starting new SSLCert() and it says: 337316
I can't get this example running properly until the ESP crashes.

It is interesting, when I am changing the keysize to 1023 bit or 2047 bit the following message occurs without heap error:
Cerating certificate failed. Error Code = 0x04, check SSLCert.hpp for details

Thank you very much for your help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant