Skip to content

Client input not checked in drawInterpolatorSmooth functions  #1

@martinfm

Description

@martinfm

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions