projects
/
occt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
0025011: IntAna_QuaQuadGeo can crash with out-of-bounds exception
[occt.git]
/
src
/
IntAna
/
IntAna_QuadQuadGeo.cxx
diff --git
a/src/IntAna/IntAna_QuadQuadGeo.cxx
b/src/IntAna/IntAna_QuadQuadGeo.cxx
index
425b268
..
212306a
100644
(file)
--- a/
src/IntAna/IntAna_QuadQuadGeo.cxx
+++ b/
src/IntAna/IntAna_QuadQuadGeo.cxx
@@
-1516,7
+1516,7
@@
IntAna_QuadQuadGeo::IntAna_QuadQuadGeo(const gp_Cylinder& Cyl,
gp_Pln aPln2(aQA2, aD3Ax2);
//
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
typeres=IntAna_NoGeometricSolution;
return;