From: blobfish Date: Sat, 25 Jun 2022 14:50:30 +0000 (+0100) Subject: [PATCH 7/7] ChFi3d_Builder: PerformIntersectionAtEnd: Check max number of faces X-Git-Tag: archive/raspbian/7.5.2+dfsg1-2+rpi1^2~3 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=d94dd3494de713e0528e9374435246463a130f45;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))