EGSnrc icon indicating copy to clipboard operation
EGSnrc copied to clipboard

edknrc needs some array size checks to avoid mysterious crashes

Open dworogers opened this issue 3 years ago • 0 comments

In edknrc, if $MXREG is not set properly or at least large enough, the code just stops with no explanation. It would be useful to have a check at the start of execution that $MXREG >=$MAXRADII*$MAXCDOSE+1 and that

$MAXRC >= MAX($MAXRADII,$MAXCDOSE)
$MAXRADII+1 > $MAXRADII
$MAXCANGLE >= $MAXCDOSE-1

dworogers avatar Mar 23 '21 16:03 dworogers