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

Backport 2.16: Fix uninitialized variable in x509_crt #2813

Merged
merged 1 commit into from
Sep 3, 2019

Conversation

pfalcon
Copy link
Contributor

@pfalcon pfalcon commented Aug 30, 2019

This patch fixes an issue we encountered with more stringent compiler
warnings. The signature_is_good variable has a possibility of being
used uninitialized. This patch moves the use of the variable to a
place where it cannot be used while uninitialized.

Signed-off-by: Andy Gross andy.gross@linaro.org

This is a backport to 2.16 of #2795

Notes:

  • Pull requests cannot be accepted until:
  • This is just a template, so feel free to use/remove the unnecessary things

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:

  • This PR is a new feature\enhancement
  • This PR contains changes in the API. If this is true, and there is a need for the fix to be backported, the fix should be handled differently in the legacy branch

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

  • Tests
  • Documentation
  • Changelog updated
  • Backported

Steps to test or reproduce

Outline the steps to test or reproduce the PR here.

This patch fixes an issue we encountered with more stringent compiler
warnings.  The signature_is_good variable has a possibility of being
used uninitialized.  This patch moves the use of the variable to a
place where it cannot be used while uninitialized.

Signed-off-by: Andy Gross <andy.gross@linaro.org>
@pfalcon
Copy link
Contributor Author

pfalcon commented Aug 30, 2019

This is backport of #2795 to mbedtls-2.16 branch. The only change is moving the ChangeLog entry to the appropriate place (next release).

Copy link
Contributor

@mpg mpg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for creating the backport! This looks good to me.

@mpg mpg requested a review from k-stachowiak September 2, 2019 06:13
@mpg mpg added bug CLA valid component-x509 needs-review Every commit must be reviewed by at least two team members, labels Sep 2, 2019
Copy link
Contributor

@k-stachowiak k-stachowiak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! LGTM.

@mpg mpg added approved Design and code approved - may be waiting for CI or backports and removed needs-review Every commit must be reviewed by at least two team members, labels Sep 2, 2019
@mpg mpg changed the title Fix uninitialized variable in x509_crt Backport 2.16: Fix uninitialized variable in x509_crt Sep 2, 2019
@Patater Patater merged commit 3fc6f9d into Mbed-TLS:mbedtls-2.16 Sep 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Design and code approved - may be waiting for CI or backports bug component-x509
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants