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

Fix a segfault associated with output of rank?VarLen datasets #511

Merged
merged 3 commits into from
Dec 15, 2023

Conversation

abensonca
Copy link
Collaborator

@abensonca abensonca commented Dec 14, 2023

When the output buffers must be extended, the rank1VarLen and rank2VarLen arrays must be extended and their original content copied back in. The was previously not done, resulting in a segfault due to out-of-bounds array access.

Thanks @msbovill for finding this problem!

When the ouptut buffers must be extended, the `rank1VarLen` and `rank2VarLen` arrays must be extended and their original content copied back in. The was previously not done, resulting in a segfault due to out-of-bounds array access.
@abensonca abensonca self-assigned this Dec 14, 2023
@abensonca abensonca added bug Something isn't working IO Input/output labels Dec 14, 2023
@abensonca abensonca added this pull request to the merge queue Dec 15, 2023
Merged via the queue into master with commit 59f25e7 Dec 15, 2023
265 checks passed
@abensonca abensonca deleted the fixOutputRank2ExtendSegFault branch December 15, 2023 02:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working IO Input/output
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant