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: Add Free context at the end of aes_crypt_xts_size() #4684

Merged

Conversation

JoeSubbiani
Copy link
Contributor

@JoeSubbiani JoeSubbiani commented Jun 18, 2021

Description

in file tests/suite/test_suite_aes.function, aes_crypt_xts_size()
did not free the context upon the function exit.
The function now frees the context on exit.

This modification has also taken place in:

Closes #4176

Status

READY

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

NO
There is already a backport for 2.x, and the change has been made on 2.16 (here) and the development branch

Migrations

NO

Todos

  • Tests
  • Changelog updated

Steps to test or reproduce

test_suite_aes

in file tests/suite/test_suite_aes.function, aes_crypt_xts_size()
did not free the context upon the function exit.
The function now frees the context on exit.

Already resolved for 2.x and development - this is a backport for
2.16

Fixes Mbed-TLS#4176

Signed-off-by: JoeSubbiani <[email protected]>
@JoeSubbiani JoeSubbiani added bug fix available needs-review Every commit must be reviewed by at least two team members, needs-backports Backports are missing or are pending review and approval. needs-ci Needs to pass CI tests needs-reviewer This PR needs someone to pick it up for review size-s Estimated task size: small (~2d) labels Jun 18, 2021
@JoeSubbiani JoeSubbiani self-assigned this Jun 18, 2021
@JoeSubbiani JoeSubbiani changed the title Free context at the end of aes_crypt_xts_size() Backport 2.16 Free context at the end of aes_crypt_xts_size() Jun 18, 2021
@JoeSubbiani JoeSubbiani changed the title Backport 2.16 Free context at the end of aes_crypt_xts_size() Backport 2.16: Add Free context at the end of aes_crypt_xts_size() Jun 18, 2021
JoeSubbiani and others added 2 commits June 18, 2021 11:47
The original formatting was in dos and the changelog
assembler would fail. The length of the description was
too long horizontally. This has been updated.

Signed-off-by: Joe Subbiani <[email protected]>
@daverodgman daverodgman self-requested a review June 18, 2021 17:47
@@ -0,0 +1,3 @@
Bugfix
* Fix an issue where resource is never freed when running one particular
test suite with an alternative AES implementation. Fixes #4176
Copy link
Contributor

Choose a reason for hiding this comment

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

Missing full stop

Trailing white space causing check_files.py to fail
issue4176.txt was also in dos format - this has been
changed to unix

Signed-off-by: Joe Subbiani <[email protected]>
@JoeSubbiani JoeSubbiani force-pushed the 2.16FixedMissingContextFree branch from a4f0249 to dcdb277 Compare June 18, 2021 17:59
@daverodgman daverodgman added needs-work and removed needs: changelog needs-review Every commit must be reviewed by at least two team members, needs-reviewer This PR needs someone to pick it up for review labels Jun 18, 2021
Missing trailing full stop added to the end of the fixed issue number

Signed-off-by: Joe Subbiani <[email protected]>
- “Fix an issue where X happens” → ”Fix X“
  the extra words are just a distraction.
- “resource” → “a resource”
- “where resource is never freed” has a name: it's a resource leak
- “when running one particular test suite” → “in a test suite”

Signed-off-by: Joe Subbiani <[email protected]>
@gilles-peskine-arm gilles-peskine-arm added needs-review Every commit must be reviewed by at least two team members, and removed needs-backports Backports are missing or are pending review and approval. needs-ci Needs to pass CI tests needs-work fix available labels Jun 21, 2021
@daverodgman daverodgman removed the needs-review Every commit must be reviewed by at least two team members, label Jun 21, 2021
@daverodgman daverodgman merged commit b3b1d4d into Mbed-TLS:mbedtls-2.16 Jun 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug size-s Estimated task size: small (~2d)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants