Skip to content

[21785] Fix encoding/decoding when inner structure has different extensibility#237

Merged
richiware merged 4 commits intomasterfrom
bugfix/21782
Oct 4, 2024
Merged

[21785] Fix encoding/decoding when inner structure has different extensibility#237
richiware merged 4 commits intomasterfrom
bugfix/21782

Conversation

@richiware
Copy link
Copy Markdown
Member

@richiware richiware commented Oct 2, 2024

Description

This PR fixes encoding/decoding of a structure with an inner structure with different extensibility.

@appendable
struct InnerAppendableStructure
{
    @id(3)
    unsigned long value1;
    @id(16) @optional
    unsigned long value2;
 };

@mutable
struct MutableWithInnerAppendableStruct
{
   @id(1)
   unsigned long value1;
   @id(2)
   InnerAppendableStructure value2;
};

Contributor Checklist

  • Commit messages follow the project guidelines.
  • The code follows the style guidelines of this project.
  • Tests that thoroughly check the new feature have been added/Regression tests checking the bug and its fix have been added; the added tests pass locally
  • N/A Any new/modified methods have been properly documented using Doxygen.
  • Changes are backport compatible: they do NOT break ABI nor change library core behavior.
  • Changes are API compatible.
  • N/A New feature has been added to the versions.md file (if applicable).
  • N/A Applicable backports have been included in the description.

Reviewer Checklist

  • The PR has a milestone assigned.
  • The title and description correctly express the PR's purpose.
  • Check contributor checklist is correct.
  • Check CI results: changes do not issue any warning.
  • Check CI results: CI pass and failing tests are unrelated with the changes.

Signed-off-by: Ricardo González Moreno <[email protected]>
Signed-off-by: Ricardo González Moreno <[email protected]>
Signed-off-by: Ricardo González Moreno <[email protected]>
Signed-off-by: Ricardo González Moreno <[email protected]>
@richiware richiware changed the title Fix encoding/decoding when inner structure has different extensibility [21785] Fix encoding/decoding when inner structure has different extensibility Oct 2, 2024
@richiware richiware added this to the v2.2.5 milestone Oct 2, 2024
@MiguelCompany MiguelCompany self-requested a review October 4, 2024 08:50
Copy link
Copy Markdown
Member

@MiguelCompany MiguelCompany left a comment

Choose a reason for hiding this comment

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

LGTM with green CI

@richiware richiware merged commit 101a156 into master Oct 4, 2024
@richiware richiware deleted the bugfix/21782 branch October 4, 2024 09:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants