From: blobfish Date: Tue, 19 Jan 2021 03:47:56 +0000 (-0500) Subject: [PATCH 7/7] ChFi3d_Builder: PerformIntersectionAtEnd: Check max number of faces X-Git-Tag: archive/raspbian/7.5.0+dfsg1-4+rpi1^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=a952935cd53f7337bc3793908863b8fc189093d3;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))