Skip to content

Check sequence lengths when deserializing [10336]#98

Merged
IkerLuengo merged 3 commits intomasterfrom
bugfix/check-lengths
Jan 26, 2021
Merged

Check sequence lengths when deserializing [10336]#98
IkerLuengo merged 3 commits intomasterfrom
bugfix/check-lengths

Conversation

@MiguelCompany
Copy link
Copy Markdown
Member

This PR fixes a std::bad_alloc issue when receiving a sequence length greater than the buffer space available.

It also refactors the most basic tests to improve maintainability and reading.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>
Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>
Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>
@richiware
Copy link
Copy Markdown
Member

Build status:

  • Linux Build Status
  • Linux aarch64Build Status
  • Mac Build Status
  • Windows Build Status

Copy link
Copy Markdown

@IkerLuengo IkerLuengo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

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.

3 participants