In drawInterpolatorSmooth for 2D and 3D interpolators the following line :
float spacing = 1.0/numSteps;
is executed without checking that numSteps be greater than 0. This yields undefined behavior/infinite loop in the for loop afterwards, if the client code passes a number lower or equal than 0.
also spline.size() is not checked in 2D interpolator.
In
drawInterpolatorSmoothfor 2D and 3D interpolators the following line :is executed without checking that
numStepsbe greater than 0. This yields undefined behavior/infinite loop in the for loop afterwards, if the client code passes a number lower or equal than 0.also
spline.size()is not checked in 2D interpolator.