mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-10 18:51:21 +03:00
0025011: IntAna_QuaQuadGeo can crash with out-of-bounds exception
Fix the crash in IntAna_QuadQuadGeo by checking the number of intersections
This commit is contained in:
parent
f49c31097c
commit
a060129f78
@ -1516,7 +1516,7 @@ IntAna_QuadQuadGeo::IntAna_QuadQuadGeo(const gp_Cylinder& Cyl,
|
|||||||
gp_Pln aPln2(aQA2, aD3Ax2);
|
gp_Pln aPln2(aQA2, aD3Ax2);
|
||||||
//
|
//
|
||||||
aIntr.Perform(aPln1, aPln2, Tol, Tol);
|
aIntr.Perform(aPln1, aPln2, Tol, Tol);
|
||||||
if (!aIntr.IsDone()) {
|
if (!aIntr.IsDone() || 0 == aIntr.NbSolutions()) {
|
||||||
iRet=-1; // just in case. it must not be so
|
iRet=-1; // just in case. it must not be so
|
||||||
typeres=IntAna_NoGeometricSolution;
|
typeres=IntAna_NoGeometricSolution;
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user