1
0
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:
jfa
2023-10-17 10:06:58 +01:00
committed by dpasukhi
parent 5b574af01f
commit 6f42ada2e6
2 changed files with 15 additions and 4 deletions

View File

@@ -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;