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

FP SmallStack Fix #7980

Merged
merged 1 commit into from
Sep 17, 2024
Merged

FP SmallStack Fix #7980

merged 1 commit into from
Sep 17, 2024

Commits on Sep 17, 2024

  1. FP SmallStack Fix

    The function _fp_exptmod_nct() is using WOLFSSL_NO_MALLOC to guard
    using stack allocation vs malloc. It's twin function _fp_exptmod_ct()
    is using WOLFSSL_SMALL_STACK for this. This is causing inappropriate use
    of malloc() in a small stack environment. The no-malloc case will also
    be kept so static memory and no-malloc fix still works.
    
    1. Change the guards for `#ifndef WOLFSSL_NO_MALLOC` in the function
       `_fp_exptmod_nct()` to `#if defined(WOLFSSL_SMALL_STACK) &&
       !defined(WOLFSSL_NO_MALLOC)`.
    ejohnstown committed Sep 17, 2024
    Configuration menu
    Copy the full SHA
    47e5140 View commit details
    Browse the repository at this point in the history