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

dirorder: Fix segfault #2272

Merged
merged 2 commits into from
Feb 3, 2021
Merged

dirorder: Fix segfault #2272

merged 2 commits into from
Feb 3, 2021

Conversation

Lestropie
Copy link
Member

Downstream of #1800, which introduced the functionality of determining the optimal reordering of directions for all possible selections of first volume, and choosing the optimal reordering from that set. Algorithm produces a segmentation fault if fewer than six input directions. This change forces the first volume in the input to be the first volume in the output in such scenarios (as there is no objective criterion by which to determine which direction is best to use first in this scenario).

Closes #2271.

@Lestropie Lestropie added the bug label Feb 2, 2021
@Lestropie Lestropie added this to the 3.0.3 hotfix milestone Feb 2, 2021
@Lestropie Lestropie self-assigned this Feb 2, 2021
Downstream of #1800, which introduced the functionality of determining the optimal reordering of directions for all possible selections of first volume, and choosing the optimal reordering from that set. Algorithm produces a segmentation fault if fewer than six input directions. This change forces the first volume in the input to be the first volume in the output in such scenarios (as there is no objective criterion by which to determine which direction is best to use first in this scenario).
Comparisons between signed and unsigned integers introduced in 035a98f.
@jdtournier jdtournier merged commit 3eadb34 into master Feb 3, 2021
@jdtournier jdtournier deleted the dirorder_segfault branch February 3, 2021 08:06
@Lestropie Lestropie modified the milestones: 3.0.4 hotfix, 3.0.3 hotfix May 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Segmentation fault for small number of directions in dirorder
2 participants