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

Ensure elements in std::array are allocated. #877

Merged
merged 1 commit into from
Nov 30, 2023
Merged

Conversation

1uc
Copy link
Collaborator

@1uc 1uc commented Nov 30, 2023

A bug in inspected::prepare left the elements of an std::array as default allocated. This fails when putting an std::vector inside an std::array, because the std::vectors need to be allocated with the appropriate length.

A bug in `inspected::prepare` left the elements of an `std::array` as
default allocated. This fails when putting an `std::vector` inside an
`std::array`, because the `std::vector`s need to be allocated with the
appropriate length.
@1uc 1uc force-pushed the 1uc/array-vector branch from 5893f9e to c8b4053 Compare November 30, 2023 09:16
@1uc
Copy link
Collaborator Author

1uc commented Nov 30, 2023

Fixes #875 more rigorous testing coming via #871.

Copy link

codecov bot commented Nov 30, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (c8bf74a) 84.89% compared to head (c8b4053) 84.94%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #877      +/-   ##
==========================================
+ Coverage   84.89%   84.94%   +0.05%     
==========================================
  Files          70       70              
  Lines        5090     5109      +19     
==========================================
+ Hits         4321     4340      +19     
  Misses        769      769              

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

@1uc 1uc marked this pull request as ready for review November 30, 2023 09:57
Copy link
Member

@alkino alkino left a comment

Choose a reason for hiding this comment

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

Good catch

@1uc 1uc merged commit 6cc408d into master Nov 30, 2023
36 checks passed
@1uc 1uc deleted the 1uc/array-vector branch November 30, 2023 10: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