mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-19 13:40:49 +03:00
Modeling - SIGSEGV BRepAdaptor_Curve2d and UnifySameDomain #372
SIGSEGV with MakeVertexInsideFace. Fixed exceptions with loading null curve and using out of range index. By K.Leontev. [bos #37951]
This commit is contained in:
@@ -435,9 +435,17 @@ static Standard_Boolean FindCoordBounds(const TopTools_SequenceOfShape&
|
||||
theNumberOfIntervals = aPairSeq.Length();
|
||||
|
||||
if (aPairSeq.Length() == 2)
|
||||
{
|
||||
theMinCoord = aPairSeq(2).first - thePeriod;
|
||||
else
|
||||
}
|
||||
else if (aPairSeq.Length() > 0)
|
||||
{
|
||||
theMinCoord = aPairSeq(1).first;
|
||||
}
|
||||
else
|
||||
{
|
||||
return Standard_False;
|
||||
}
|
||||
|
||||
theMaxCoord = aPairSeq(1).second;
|
||||
return Standard_True;
|
||||
|
Reference in New Issue
Block a user