-
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
Backport 2.16: Fix dead code in mbedtls_mpi_exp_mod() #2388
Conversation
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.
This is a faithful backport.
Please rebase to update for all.sh changes. |
In mbedtls_mpi_exp_mod(), the limit check on wsize is never true when MBEDTLS_MPI_WINDOW_SIZE is at least 6. Wrap in a preprocessor guard to remove the dead code and resolve a Coverity finding from the DEADCODE checker. Change-Id: Ice7739031a9e8249283a04de11150565b613ae89
There were no tests for a non-default MPI window size. Add one. Change-Id: Ic08fbc9161d0b3ee67eb3c91f9baf602646c9dfe
1e2aa72
01a3521
to
1e2aa72
Compare
@Patater I have rebased the PR. |
ChangeLog
Outdated
@@ -31,6 +31,10 @@ Changes | |||
Inserted as an enhancement for #1371 | |||
* Add support for alternative CSR headers, as used by Microsoft and defined | |||
in RFC 7468. Found by Michael Ernst. Fixes #767. | |||
* Remove dead code from bignum.c in the default configuration. | |||
Found by Coverity, reported and fixed by Peter Kolbus. Fixes #2309. |
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.
Please credit my employer as well: "Peter Kolbus (Garmin)"
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.
Done. Thanks for a quick response!
0d48080
to
b17ac5b
Compare
b17ac5b
to
dc5893d
Compare
@AndrzejKurek @RonEld Could you please review the change log update? |
Thanks, LGTM. |
This is a backport of #2317