-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
fix memory leak in mpi_miller_rabin() #2363
Conversation
Fixes memory leak in mpi_miller_rabin() that occurs when the function has failed to obtain a usable random 'A' 30 turns in a row. Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
@jenswi-linaro Thank you for your contribution! Would you be willing to add an entry in the ChangeLog, crediting yourself \ Linaro for the contribution? |
Note: CLA is valid, as part of the Linaro project CLA |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code change is good.
However, a ChangeLog entry is required.
I understand that you may not have time. We can add the entry on your behlaf, if you are busy.
Note: Requires backporting to |
Added a change log entry. Please let me know if this is what you had in mind. |
ChangeLog
Outdated
@@ -11,6 +11,7 @@ Bugfix | |||
previously lead to a stack overflow on constrained targets. | |||
* Add `MBEDTLS_SELF_TEST` for the mbedtls_self_test functions | |||
in the header files, which missed the precompilation check. #971 | |||
* Fix memory leak in in mpi_miller_rabin() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* Fix memory leak in in mpi_miller_rabin() | |
* Fix memory leak in in mpi_miller_rabin(). Contributed by Jens Wiklander in #2363. |
Unless you prefer the credit to be given to Linaro.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the suggestion. I added both. :-)
Thank you for adding the ChangeLog entry. I added a suggestion for a change, as we credit the contributors in the ChangeLog. |
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
58aff29
to
035eaea
Compare
Backports have been fully approved, so removed the "needs backports" label |
Fixes memory leak in mpi_miller_rabin() that occurs when the function has
failed to obtain a usable random 'A' 30 turns in a row.
Signed-off-by: Jens Wiklander jens.wiklander@linaro.org
Notes:
or for companies or those that do not wish to create an mbed account, a slightly different agreement can be found here
Description
A few sentences describing the overall goals of the pull request's commits.
Status
READY/IN DEVELOPMENT/HOLD
Requires Backporting
When there is a bug fix, it should be backported to all maintained and supported branches.
Changes do not have to be backported if:
Yes | NO
Which branch?
Migrations
If there is any API change, what's the incentive and logic for it.
YES | NO
Additional comments
Any additional information that could be of interest
Todos
Steps to test or reproduce
Outline the steps to test or reproduce the PR here.