Sketcher: Assertion on solver bspline control point creation to expose any potential index miscalculation and memory overflow
This commit is contained in:
@@ -2474,6 +2474,8 @@ int Sketch::addInternalAlignmentBSplineControlPoint(int geoId1, int geoId2, int
|
||||
GCS::Circle &c = Circles[Geoms[geoId2].index];
|
||||
|
||||
GCS::BSpline &b = BSplines[Geoms[geoId1].index];
|
||||
|
||||
assert( poleindex < b.poles.size() && poleindex >= 0 );
|
||||
|
||||
int tag = ++ConstraintsCounter;
|
||||
GCSsys.addConstraintInternalAlignmentBSplineControlPoint(b, c, poleindex, tag);
|
||||
|
||||
Reference in New Issue
Block a user