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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user