Implement a validity check for firstSN#3274
Merged
MiguelCompany merged 3 commits intoeProsima:masterfrom Mar 16, 2023
Merged
Conversation
Following 8.3.8.6.3 of DDS-RTPS 2.5. This fixes issue eProsima#3236. Signed-off-by: Seulbae Kim <squizz617@gmail.com>
MiguelCompany
requested changes
Feb 7, 2023
Member
MiguelCompany
left a comment
There was a problem hiding this comment.
@squizz617 Thank you for your contribution!
This is not building (see my comment below).
5b49eee to
4382b5d
Compare
Contributor
Author
|
Sorry, made a mistake while moving stuffs into the pr branch :( |
Contributor
Author
|
Hi @MiguelCompany, I'm just wondering if you've looked at the changes. Thank you. |
Member
@squizz617 Changes look good to me. Is it possible that you could add a regression test for this? I think that adding a new file here would be enough |
Signed-off-by: Seulbae Kim <squizz617@gmail.com>
Contributor
Author
|
@MiguelCompany Done! I temporarily named the file |
MiguelCompany
approved these changes
Mar 15, 2023
Member
|
@richiprosima Please test this |
Member
|
@Mergifyio backport 2.9.x 2.8.x 2.6.x |
Contributor
✅ Backports have been createdDetails
|
mergify bot
pushed a commit
that referenced
this pull request
Mar 16, 2023
* Implement a validity check for firstSN Following 8.3.8.6.3 of DDS-RTPS 2.5. This fixes issue #3236. Signed-off-by: Seulbae Kim <squizz617@gmail.com> * fix typo Signed-off-by: Seulbae Kim <squizz617@gmail.com> * add test input for issue #3236 (pr #3274) Signed-off-by: Seulbae Kim <squizz617@gmail.com> --------- Signed-off-by: Seulbae Kim <squizz617@gmail.com> (cherry picked from commit 3aa3ee0)
mergify bot
pushed a commit
that referenced
this pull request
Mar 16, 2023
* Implement a validity check for firstSN Following 8.3.8.6.3 of DDS-RTPS 2.5. This fixes issue #3236. Signed-off-by: Seulbae Kim <squizz617@gmail.com> * fix typo Signed-off-by: Seulbae Kim <squizz617@gmail.com> * add test input for issue #3236 (pr #3274) Signed-off-by: Seulbae Kim <squizz617@gmail.com> --------- Signed-off-by: Seulbae Kim <squizz617@gmail.com> (cherry picked from commit 3aa3ee0)
mergify bot
pushed a commit
that referenced
this pull request
Mar 16, 2023
* Implement a validity check for firstSN Following 8.3.8.6.3 of DDS-RTPS 2.5. This fixes issue #3236. Signed-off-by: Seulbae Kim <squizz617@gmail.com> * fix typo Signed-off-by: Seulbae Kim <squizz617@gmail.com> * add test input for issue #3236 (pr #3274) Signed-off-by: Seulbae Kim <squizz617@gmail.com> --------- Signed-off-by: Seulbae Kim <squizz617@gmail.com> (cherry picked from commit 3aa3ee0)
MiguelCompany
pushed a commit
that referenced
this pull request
Mar 22, 2023
* Implement a validity check for firstSN Following 8.3.8.6.3 of DDS-RTPS 2.5. This fixes issue #3236. Signed-off-by: Seulbae Kim <squizz617@gmail.com> * fix typo Signed-off-by: Seulbae Kim <squizz617@gmail.com> * add test input for issue #3236 (pr #3274) Signed-off-by: Seulbae Kim <squizz617@gmail.com> --------- Signed-off-by: Seulbae Kim <squizz617@gmail.com> (cherry picked from commit 3aa3ee0) Co-authored-by: Seulbae Kim <squizz617@gmail.com>
MiguelCompany
pushed a commit
that referenced
this pull request
Mar 24, 2023
* Implement a validity check for firstSN (#3274) * Implement a validity check for firstSN Following 8.3.8.6.3 of DDS-RTPS 2.5. This fixes issue #3236. Signed-off-by: Seulbae Kim <squizz617@gmail.com> * fix typo Signed-off-by: Seulbae Kim <squizz617@gmail.com> * add test input for issue #3236 (pr #3274) Signed-off-by: Seulbae Kim <squizz617@gmail.com> --------- Signed-off-by: Seulbae Kim <squizz617@gmail.com> (cherry picked from commit 3aa3ee0) * Refs #17717: Logging Macro fix Signed-off-by: Mario Dominguez <mariodominguez@eprosima.com> --------- Signed-off-by: Mario Dominguez <mariodominguez@eprosima.com> Co-authored-by: Seulbae Kim <squizz617@gmail.com> Co-authored-by: Mario Dominguez <mariodominguez@eprosima.com>
JLBuenoLopez
pushed a commit
that referenced
this pull request
Apr 11, 2023
* Implement a validity check for firstSN (#3274) * Implement a validity check for firstSN Following 8.3.8.6.3 of DDS-RTPS 2.5. This fixes issue #3236. Signed-off-by: Seulbae Kim <squizz617@gmail.com> * fix typo Signed-off-by: Seulbae Kim <squizz617@gmail.com> * add test input for issue #3236 (pr #3274) Signed-off-by: Seulbae Kim <squizz617@gmail.com> --------- Signed-off-by: Seulbae Kim <squizz617@gmail.com> (cherry picked from commit 3aa3ee0) * Refs #17717: Logging Macro fix Signed-off-by: Mario Dominguez <mariodominguez@eprosima.com> --------- Signed-off-by: Mario Dominguez <mariodominguez@eprosima.com> Co-authored-by: Seulbae Kim <squizz617@gmail.com> Co-authored-by: Mario Dominguez <mariodominguez@eprosima.com>
This file contains hidden or 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
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.
This commit suggests a fix for issue #3236.
Description
As per 8.3.8.6.3 of DDS-RTPS 2.5, "Heartbeat submessage is invalid if firstSN.value is zero or negative". However, a check for this property is missing. This leads to an assertion failure when an invalid firstSN is provided (see issue #3236).
@Mergifyio backport 2.9.x
Fixes #3236
Contributor Checklist
versions.mdfile (if applicable).Reviewer Checklist