Error in SplineWorkspace #9694
Labels
Framework
Issues and pull requests related to components in the Framework
High Priority
An issue or pull request that if not addressed is severe enough to postponse a release.
Milestone
Original Reporter: Russell Taylor
The following code in SplineWorkspace.cpp (starting at line 88) came to my attention because coverity scan complained about dereferencing a null pointer:
yValues
needs to be an array, but is not declared as such. The best approach here would be to declare it as a local std::vector and then pass its address to derivative1D.Also, this class is lacking a unit test, which surely would have picked up this mistake.
Finally, calling a class *Workspace when it's a function is confusing! Could you come up with an alternative name please?
The text was updated successfully, but these errors were encountered: