From a952935cd53f7337bc3793908863b8fc189093d3 Mon Sep 17 00:00:00 2001 From: blobfish Date: Mon, 18 Jan 2021 22:47:56 -0500 Subject: [PATCH] [PATCH 7/7] ChFi3d_Builder: PerformIntersectionAtEnd: Check max number of faces Gbp-Pq: Name 0007-ChFi3d_Builder-PerformIntersectionAtEnd-Check-max-nu.patch --- src/ChFi3d/ChFi3d_Builder_C1.cxx | 1 + 1 file changed, 1 insertion(+) 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)) -- 2.30.2