Skip to content

Reducing stack memory consumption #355

@pouyaashraf

Description

@pouyaashraf

Description

When using the mbedtls library on certain embedded platforms, a stack-allocated buffer (buf in mbedtls_rsa_rsassa_pss_verify_ext) provokes a stack overflow. The platform in question is LittleKernel running on ARM, where we unfortunately don't have the option of increasing the stack alotted to the kernel. Changing the buf variable to have static storage duration resolves this, but then the function becomes thread un-safe which is not desirable.

Issue request type

[ ] Question
[x] Enhancement
[ ] Bug

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions