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

Allocate enough memory when deserializing types [20095] #101

Merged
merged 1 commit into from
Dec 7, 2023

Conversation

Tempate
Copy link
Contributor

@Tempate Tempate commented Dec 7, 2023

In the previous version, the DDS Replayer was creating a buffer with a uint16_t size to deserialize data in, and, sometimes, it was bumping into NotEnoughMemoryExceptions. In the version, the buffer's size is created with a uint32_t, fixing the exceptions.

Signed-off-by: tempate <danieldiaz@eprosima.com>
@Tempate Tempate changed the title Allocate enough memory when deserializing types [#20095] Allocate enough memory when deserializing types [20095] Dec 7, 2023
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (ceee756) 20.36% compared to head (68aa1e0) 20.19%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #101      +/-   ##
==========================================
- Coverage   20.36%   20.19%   -0.18%     
==========================================
  Files          29       29              
  Lines        2715     2714       -1     
  Branches     1423     1423              
==========================================
- Hits          553      548       -5     
- Misses       1694     1704      +10     
+ Partials      468      462       -6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@irenebm irenebm left a comment

Choose a reason for hiding this comment

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

LGTM

irenebm

This comment was marked as duplicate.

@irenebm irenebm merged commit 06d37fe into main Dec 7, 2023
17 checks passed
@irenebm irenebm deleted the hotfix/insufficient_buffer_memory branch December 7, 2023 15:02
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