Skip to content

MNT: Add guards for out-of-bounds -f and -g parameters

Paul McCarthy requested to merge mnt/neg-f into master

Passing a negative value for -f results in bet_main_parameter evaluating to nan. This results in a seg fault on Intel Linux and macOS. For unknown reasons, bet will run to completion on macOS M1, but the result will not be brain extracted.

Merge request reports