Skip to content

dirorder: Fix segfault#2272

Merged
jdtournier merged 2 commits intomasterfrom
dirorder_segfault
Feb 3, 2021
Merged

dirorder: Fix segfault#2272
jdtournier merged 2 commits intomasterfrom
dirorder_segfault

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 requested a review from jdtournier February 2, 2021 22:36
@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