From: blobfish Date: Mon, 8 Feb 2021 00:02:09 +0000 (+0000) Subject: [PATCH 7/7] ChFi3d_Builder: PerformIntersectionAtEnd: Check max number of faces X-Git-Tag: archive/raspbian/7.5.1+dfsg1-2+rpi1^2~2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=7ebb90862dcd6c42bc9d2991c76b5bf91b4f30f3;p=opencascade.git [PATCH 7/7] ChFi3d_Builder: PerformIntersectionAtEnd: Check max number of faces Gbp-Pq: Name 0007-ChFi3d_Builder-PerformIntersectionAtEnd-Check-max-nu.patch --- diff --git a/src/ChFi3d/ChFi3d_Builder_C1.cxx b/src/ChFi3d/ChFi3d_Builder_C1.cxx index 85fce5cff..09a2e1030 100644 --- a/src/ChFi3d/ChFi3d_Builder_C1.cxx +++ b/src/ChFi3d/ChFi3d_Builder_C1.cxx @@ -2018,6 +2018,7 @@ void ChFi3d_Builder::PerformIntersectionAtEnd(const Standard_Integer Index) if ((possible1 && possible2) || (!possible1 && !possible2) || (nbarete > 4)) { while (!trouve) { nb++; + if (nb>=nn) throw Standard_Failure("IntersectionAtEnd : the max number of faces reached"); if (nb!=1) F3=Face[nb-2]; Face[nb-1]=F3; if (CV1.Arc().IsSame(edgelibre1))