-
Notifications
You must be signed in to change notification settings - Fork 775
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
[20945] Fix SecurityTest unittests memory error #4750
Merged
Merged
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
Mario-DL
changed the title
[20945] Fix SecurityTest unittests address errors
[20945] Fix SecurityTest unittests memory error
Apr 30, 2024
… errors Signed-off-by: Mario Dominguez <[email protected]>
MiguelCompany
approved these changes
May 3, 2024
@richiprosima Please test this |
Mario-DL
added a commit
that referenced
this pull request
May 6, 2024
Signed-off-by: Mario Dominguez <[email protected]>
Mario-DL
added a commit
that referenced
this pull request
May 6, 2024
Signed-off-by: Mario Dominguez <[email protected]>
Mario-DL
added a commit
that referenced
this pull request
May 6, 2024
Signed-off-by: Mario Dominguez <[email protected]>
MiguelCompany
added a commit
that referenced
this pull request
May 6, 2024
…ter_` (#4673) (#4725) * Fix leak in SecurityManager::participant_volatile_message_secure_writer_ (#4673) * Refs #20658. Add blackbox test. Signed-off-by: Miguel Company <[email protected]> * Refs #20658. Add expectations to unit test. Signed-off-by: Miguel Company <[email protected]> * Refs #20658. Fix issue. Signed-off-by: Miguel Company <[email protected]> * Refs #20658. Improve regression test. Signed-off-by: Miguel Company <[email protected]> --------- Signed-off-by: Miguel Company <[email protected]> (cherry picked from commit 14ee8ef) * Fix SecurityTest unittests memory error (#4750) Signed-off-by: Mario Dominguez <[email protected]> --------- Signed-off-by: Mario Dominguez <[email protected]> Co-authored-by: Miguel Company <[email protected]> Co-authored-by: Mario Domínguez López <[email protected]>
EduPonz
pushed a commit
that referenced
this pull request
May 9, 2024
…ter_` (#4673) (#4724) * Fix leak in SecurityManager::participant_volatile_message_secure_writer_ (#4673) * Refs #20658. Add blackbox test. Signed-off-by: Miguel Company <[email protected]> * Refs #20658. Add expectations to unit test. Signed-off-by: Miguel Company <[email protected]> * Refs #20658. Fix issue. Signed-off-by: Miguel Company <[email protected]> * Refs #20658. Improve regression test. Signed-off-by: Miguel Company <[email protected]> --------- Signed-off-by: Miguel Company <[email protected]> (cherry picked from commit 14ee8ef) * Fix SecurityTest unittests memory error (#4750) Signed-off-by: Mario Dominguez <[email protected]> --------- Signed-off-by: Mario Dominguez <[email protected]> Co-authored-by: Miguel Company <[email protected]> Co-authored-by: Mario Domínguez López <[email protected]>
EduPonz
pushed a commit
that referenced
this pull request
May 14, 2024
…ter_` (#4673) (#4726) * Fix leak in SecurityManager::participant_volatile_message_secure_writer_ (#4673) * Refs #20658. Add blackbox test. Signed-off-by: Miguel Company <[email protected]> * Refs #20658. Add expectations to unit test. Signed-off-by: Miguel Company <[email protected]> * Refs #20658. Fix issue. Signed-off-by: Miguel Company <[email protected]> * Refs #20658. Improve regression test. Signed-off-by: Miguel Company <[email protected]> --------- Signed-off-by: Miguel Company <[email protected]> (cherry picked from commit 14ee8ef) * Fix SecurityTest unittests memory error (#4750) Signed-off-by: Mario Dominguez <[email protected]> --------- Signed-off-by: Mario Dominguez <[email protected]> Co-authored-by: Miguel Company <[email protected]> Co-authored-by: Mario Domínguez López <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
This PR fixes an incorrect memory access error in the SecurityTests. The same
CacheChange
kx_change
was being deleted and after accessed in the lambda defined within theexpect_kx_exchange
function.The fix proposes separating the concerns of deletion and addition, defining a CacheChange for each one (in particular, a stack-allocated one for the addition).
Important Backports are not being included since backports from #4673 have not been merged and this could be cherry-picked.
Contributor Checklist
versions.md
file (if applicable).Reviewer Checklist