Skip to content

Self-signed certificate HEAP memory issue #186

@alexair777

Description

@alexair777

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions