-
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
Set psk to NULL in ssl_psk_remove #9241
Merged
tom-cosgrove-arm
merged 1 commit into
Mbed-TLS:development
from
lhuang04:official_development_psk_null2
Jun 12, 2024
Merged
Set psk to NULL in ssl_psk_remove #9241
tom-cosgrove-arm
merged 1 commit into
Mbed-TLS:development
from
lhuang04:official_development_psk_null2
Jun 12, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Summary: set the psk to null after it is released. Test Plan: Reviewers: Subscribers: Tasks: Tags: Signed-off-by: lhuang04 <[email protected]>
tom-cosgrove-arm
approved these changes
Jun 11, 2024
tom-cosgrove-arm
added
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
component-tls
labels
Jun 11, 2024
Could you please raise backports against the |
tom-cosgrove-arm
added
size-s
Estimated task size: small (~2d)
priority-medium
Medium priority - this can be reviewed as time permits
labels
Jun 11, 2024
gilles-peskine-arm
approved these changes
Jun 11, 2024
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.
LGTM — thanks, setting a pointer variable to null after it's freed is a good hygiene rule.
Can you please make backports to the mbedtls-3.6
and mbedtls-2.28
branches?
gilles-peskine-arm
added
needs-backports
Backports are missing or are pending review and approval.
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,
needs-reviewer
This PR needs someone to pick it up for review
labels
Jun 11, 2024
lhuang04
added a commit
to lhuang04/mbedtls
that referenced
this pull request
Jun 11, 2024
Summary: Back port [PR 9241](Mbed-TLS#9241) to 2.28 branch Test Plan: Reviewers: Subscribers: Tasks: Tags:
lhuang04
added a commit
to lhuang04/mbedtls
that referenced
this pull request
Jun 11, 2024
Summary: Backport [PR 9241](Mbed-TLS#9241) to 3.6 branch. Test Plan: Reviewers: Subscribers: Tasks: Tags:
lhuang04
added a commit
to lhuang04/mbedtls
that referenced
this pull request
Jun 11, 2024
Summary: Backport [PR 9241](Mbed-TLS#9241) to 3.6 branch. Test Plan: Reviewers: Subscribers: Tasks: Tags:
4 tasks
lhuang04
added a commit
to lhuang04/mbedtls
that referenced
this pull request
Jun 11, 2024
Summary: Back port [PR 9241](Mbed-TLS#9241) to 2.28 branch Test Plan: Reviewers: Subscribers: Tasks: Tags:
4 tasks
lhuang04
added a commit
to lhuang04/mbedtls
that referenced
this pull request
Jun 11, 2024
Summary: Back port [PR 9241](Mbed-TLS#9241) to 2.28 branch Test Plan: Reviewers: Subscribers: Tasks: Tags: Signed-off-by: lhuang04 <[email protected]>
lhuang04
added a commit
to lhuang04/mbedtls
that referenced
this pull request
Jun 11, 2024
Summary: Backport [PR 9241](Mbed-TLS#9241) to 3.6 branch. Test Plan: Reviewers: Subscribers: Tasks: Tags: Signed-off-by: lhuang04 <[email protected]>
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
component-tls
needs-backports
Backports are missing or are pending review and approval.
priority-medium
Medium priority - this can be reviewed as time permits
size-s
Estimated task size: small (~2d)
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary:
set the psk to NULL after it is released.
ssl_remove_psk
will freessl->handshake->psk
. If we don't set it toNULL
. It may be used or free again in other conditions.Test Plan:
Reviewers:
Subscribers: [email protected]
Tasks:
Tags:
Description
Address an issue that
psk
is not set to NULL after it is released.PR checklist
Please tick as appropriate and edit the reasons (e.g.: "backport: not needed because this is a new feature")
Notes for the submitter
Please refer to the contributing guidelines, especially the
checklist for PR contributors.
Help make review efficient: