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

Limit SequenceNumberSet number of bits on deserialization [11875] #2027

Merged
merged 5 commits into from
Jul 1, 2021

Conversation

MiguelCompany
Copy link
Member

@MiguelCompany MiguelCompany commented Jun 28, 2021

This PR limits the maximum number of bits on the deserialization of SequenceNumberSet (i.e. ACKNACK and GAP submessages) to avoid a signed integer overflow on the high part of the sequence number.

As a bonus, it also drops messages with a protocol major version number lower than 2.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>
Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>
Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>
Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>
@MiguelCompany MiguelCompany requested a review from richiware June 28, 2021 05:33
Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>
@MiguelCompany MiguelCompany modified the milestone: v2.4.0 Jun 28, 2021
@MiguelCompany MiguelCompany merged commit 57ed258 into master Jul 1, 2021
@MiguelCompany MiguelCompany deleted the bugfix/11065/master branch July 1, 2021 05:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants