You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the flow of the mbedtls_rsa_private function, it first acquires the ctx lock, then initializes several mbedtls_mpi structure variables (such as T, P1, Q1, etc.). However, upon function exit, it releases the lock first and then frees the memory occupied by these mbedtls_mpi structures that were previously allocated. If unlocking fails during function exit, the memory allocated through mbedtls_alloc will not be released, leading to a memory leak issue.
The text was updated successfully, but these errors were encountered:
Summary
In function mbedtls_rsa_private:
In the flow of the mbedtls_rsa_private function, it first acquires the ctx lock, then initializes several mbedtls_mpi structure variables (such as T, P1, Q1, etc.). However, upon function exit, it releases the lock first and then frees the memory occupied by these mbedtls_mpi structures that were previously allocated. If unlocking fails during function exit, the memory allocated through mbedtls_alloc will not be released, leading to a memory leak issue.
The text was updated successfully, but these errors were encountered: