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(include): avoid segfault when calculating totalSize #1260

Conversation

kgoettler
Copy link
Contributor

@kgoettler kgoettler commented Oct 29, 2024

Hi,

This PR fixes an issue in which a segfault could occur when calculating the total size of the buffered region. If my understanding is correct here, imageJSON.size[i] should be used if imageJSON.bufferedRegion.size is undefined.

Related thread on the ITK forum: https://discourse.itk.org/t/running-pipeline-inputs-outputs-tutorial-in-browser/7282

Copy link
Member

@thewtex thewtex left a comment

Choose a reason for hiding this comment

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

👏 @kgoettler thank you for the contribution!

@thewtex thewtex merged commit ee93c01 into InsightSoftwareConsortium:main Oct 29, 2024
69 checks passed
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.

2 participants