1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

0026230: Segmentation fault because a NULL curve is used without precaution in case of a projection failure

This commit is contained in:
ifv
2015-05-29 11:25:56 +03:00
committed by bugmaster
parent 20a216fe6f
commit b9a7d22599
2 changed files with 23 additions and 18 deletions

View File

@@ -15,6 +15,7 @@
#include <BOPTools_AlgoTools2D.ixx>
#include <Standard_NotImplemented.hxx>
#include <Standard_ConstructionError.hxx>
#include <Precision.hxx>
#include <gp.hxx>
@@ -652,6 +653,12 @@ void BOPTools_AlgoTools2D::MakePCurveOnFace
aTolR = aProj3.GetTolerance();
}
}
//
if(aC2D.IsNull())
{
Standard_ConstructionError::Raise("BOPTools_AlgoTools2D::MakePCurveOnFace : PCurve is Null");
}
//
TolReached2d=aTolR;
BOPTools_AlgoTools2D::AdjustPCurveOnFace (aBAS, aT1, aT2,
aC2D, aC2DA);