-
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
[21751] Discard changes with big key-only payload and no key hash #5262
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
Signed-off-by: Miguel Company <[email protected]>
Signed-off-by: Miguel Company <[email protected]>
Signed-off-by: Miguel Company <[email protected]>
Signed-off-by: Miguel Company <[email protected]>
Signed-off-by: Miguel Company <[email protected]>
…y payloads in the future. Signed-off-by: Miguel Company <[email protected]>
MiguelCompany
force-pushed
the
bugfix/21707
branch
from
September 25, 2024 08:55
3a035d5
to
73f3586
Compare
MiguelCompany
requested review from
richiprosima
and removed request for
richiprosima
September 25, 2024 08:55
richiware
requested changes
Sep 26, 2024
…ter`. Signed-off-by: Miguel Company <[email protected]>
Signed-off-by: Miguel Company <[email protected]>
Signed-off-by: Miguel Company <[email protected]>
richiware
approved these changes
Sep 27, 2024
@Mergifyio backport 2.14.x |
✅ Backports have been created
|
mergify bot
pushed a commit
that referenced
this pull request
Sep 27, 2024
* Refs #21707. Regression test. Signed-off-by: Miguel Company <[email protected]> * Refs #21707. Test both best_effort and reliable. Signed-off-by: Miguel Company <[email protected]> * Refs #21707. Fix by considering offending change as irrelevant. Signed-off-by: Miguel Company <[email protected]> * Refs #21707. Refactor code in MessageReceiver. Signed-off-by: Miguel Company <[email protected]> * Refs #21707. Avoid overriding instanceHandle. Signed-off-by: Miguel Company <[email protected]> * Refs #21707. Add TODO so we don't forget to correctly process key-only payloads in the future. Signed-off-by: Miguel Company <[email protected]> * Refs #21751. Document and improve code in `change_is_relevant_for_filter`. Signed-off-by: Miguel Company <[email protected]> * Refs #21751. Document else. Signed-off-by: Miguel Company <[email protected]> * Refs #21751. Added static assertions for structure sizes. Signed-off-by: Miguel Company <[email protected]> --------- Signed-off-by: Miguel Company <[email protected]> (cherry picked from commit 175add5)
12 tasks
@Mergifyio backport 2.10.x 2.6.x |
✅ Backports have been created
|
mergify bot
pushed a commit
that referenced
this pull request
Sep 27, 2024
* Refs #21707. Regression test. Signed-off-by: Miguel Company <[email protected]> * Refs #21707. Test both best_effort and reliable. Signed-off-by: Miguel Company <[email protected]> * Refs #21707. Fix by considering offending change as irrelevant. Signed-off-by: Miguel Company <[email protected]> * Refs #21707. Refactor code in MessageReceiver. Signed-off-by: Miguel Company <[email protected]> * Refs #21707. Avoid overriding instanceHandle. Signed-off-by: Miguel Company <[email protected]> * Refs #21707. Add TODO so we don't forget to correctly process key-only payloads in the future. Signed-off-by: Miguel Company <[email protected]> * Refs #21751. Document and improve code in `change_is_relevant_for_filter`. Signed-off-by: Miguel Company <[email protected]> * Refs #21751. Document else. Signed-off-by: Miguel Company <[email protected]> * Refs #21751. Added static assertions for structure sizes. Signed-off-by: Miguel Company <[email protected]> --------- Signed-off-by: Miguel Company <[email protected]> (cherry picked from commit 175add5) # Conflicts: # test/blackbox/common/BlackboxTestsTransportUDP.cpp
12 tasks
mergify bot
pushed a commit
that referenced
this pull request
Sep 27, 2024
* Refs #21707. Regression test. Signed-off-by: Miguel Company <[email protected]> * Refs #21707. Test both best_effort and reliable. Signed-off-by: Miguel Company <[email protected]> * Refs #21707. Fix by considering offending change as irrelevant. Signed-off-by: Miguel Company <[email protected]> * Refs #21707. Refactor code in MessageReceiver. Signed-off-by: Miguel Company <[email protected]> * Refs #21707. Avoid overriding instanceHandle. Signed-off-by: Miguel Company <[email protected]> * Refs #21707. Add TODO so we don't forget to correctly process key-only payloads in the future. Signed-off-by: Miguel Company <[email protected]> * Refs #21751. Document and improve code in `change_is_relevant_for_filter`. Signed-off-by: Miguel Company <[email protected]> * Refs #21751. Document else. Signed-off-by: Miguel Company <[email protected]> * Refs #21751. Added static assertions for structure sizes. Signed-off-by: Miguel Company <[email protected]> --------- Signed-off-by: Miguel Company <[email protected]> (cherry picked from commit 175add5) # Conflicts: # src/cpp/rtps/messages/MessageReceiver.cpp # test/blackbox/common/BlackboxTestsTransportUDP.cpp
12 tasks
MiguelCompany
added a commit
that referenced
this pull request
Oct 2, 2024
) * Discard changes with big key-only payload and no key hash (#5262) * Refs #21707. Regression test. Signed-off-by: Miguel Company <[email protected]> * Refs #21707. Test both best_effort and reliable. Signed-off-by: Miguel Company <[email protected]> * Refs #21707. Fix by considering offending change as irrelevant. Signed-off-by: Miguel Company <[email protected]> * Refs #21707. Refactor code in MessageReceiver. Signed-off-by: Miguel Company <[email protected]> * Refs #21707. Avoid overriding instanceHandle. Signed-off-by: Miguel Company <[email protected]> * Refs #21707. Add TODO so we don't forget to correctly process key-only payloads in the future. Signed-off-by: Miguel Company <[email protected]> * Refs #21751. Document and improve code in `change_is_relevant_for_filter`. Signed-off-by: Miguel Company <[email protected]> * Refs #21751. Document else. Signed-off-by: Miguel Company <[email protected]> * Refs #21751. Added static assertions for structure sizes. Signed-off-by: Miguel Company <[email protected]> --------- Signed-off-by: Miguel Company <[email protected]> (cherry picked from commit 175add5) * Fix build Signed-off-by: Miguel Company <[email protected]> --------- Signed-off-by: Miguel Company <[email protected]> Co-authored-by: Miguel Company <[email protected]>
MiguelCompany
added a commit
that referenced
this pull request
Oct 4, 2024
) * Discard changes with big key-only payload and no key hash (#5262) * Refs #21707. Regression test. Signed-off-by: Miguel Company <[email protected]> * Refs #21707. Test both best_effort and reliable. Signed-off-by: Miguel Company <[email protected]> * Refs #21707. Fix by considering offending change as irrelevant. Signed-off-by: Miguel Company <[email protected]> * Refs #21707. Refactor code in MessageReceiver. Signed-off-by: Miguel Company <[email protected]> * Refs #21707. Avoid overriding instanceHandle. Signed-off-by: Miguel Company <[email protected]> * Refs #21707. Add TODO so we don't forget to correctly process key-only payloads in the future. Signed-off-by: Miguel Company <[email protected]> * Refs #21751. Document and improve code in `change_is_relevant_for_filter`. Signed-off-by: Miguel Company <[email protected]> * Refs #21751. Document else. Signed-off-by: Miguel Company <[email protected]> * Refs #21751. Added static assertions for structure sizes. Signed-off-by: Miguel Company <[email protected]> --------- Signed-off-by: Miguel Company <[email protected]> (cherry picked from commit 175add5) # Conflicts: # src/cpp/rtps/messages/MessageReceiver.cpp # test/blackbox/common/BlackboxTestsTransportUDP.cpp * Fix conflicts Signed-off-by: Miguel Company <[email protected]> * Additional fixes 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 Dominguez <[email protected]>
MiguelCompany
added a commit
that referenced
this pull request
Oct 17, 2024
) * Discard changes with big key-only payload and no key hash (#5262) * Refs #21707. Regression test. Signed-off-by: Miguel Company <[email protected]> * Refs #21707. Test both best_effort and reliable. Signed-off-by: Miguel Company <[email protected]> * Refs #21707. Fix by considering offending change as irrelevant. Signed-off-by: Miguel Company <[email protected]> * Refs #21707. Refactor code in MessageReceiver. Signed-off-by: Miguel Company <[email protected]> * Refs #21707. Avoid overriding instanceHandle. Signed-off-by: Miguel Company <[email protected]> * Refs #21707. Add TODO so we don't forget to correctly process key-only payloads in the future. Signed-off-by: Miguel Company <[email protected]> * Refs #21751. Document and improve code in `change_is_relevant_for_filter`. Signed-off-by: Miguel Company <[email protected]> * Refs #21751. Document else. Signed-off-by: Miguel Company <[email protected]> * Refs #21751. Added static assertions for structure sizes. Signed-off-by: Miguel Company <[email protected]> --------- Signed-off-by: Miguel Company <[email protected]> (cherry picked from commit 175add5) # Conflicts: # test/blackbox/common/BlackboxTestsTransportUDP.cpp * Fix conflicts Signed-off-by: Miguel Company <[email protected]> * Fix build Signed-off-by: Miguel Company <[email protected]> --------- Signed-off-by: Miguel Company <[email protected]> Co-authored-by: Miguel Company <[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
We currently don't have support for key-only payloads bigger than the KEY_HASH length.
Receiving such kind of messages produces a segfault in DataReaderHistory.
This PR adds a regression test reproducing the issue, and fixes it by considering the incoming change as irrelevant.
It has been done this way so it is acknowledged in reliable topics, thus avoiding the offending data to be resent.
@Mergifyio backport 2.14.x 2.10.x
@Mergifyio backport 2.6.x
Contributor Checklist
versions.md
file (if applicable).Reviewer Checklist