From: eap Date: Wed, 6 May 2015 16:17:10 +0000 (+0300) Subject: Regression of smesh/bugs_19/X1: avoid SIGSEGV in case of invalid node params on EDGE X-Git-Tag: V7_6_0rc1~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=17822d1b5f5163731bcc51b9044c7be1dae2d409;p=plugins%2Fnetgenplugin.git Regression of smesh/bugs_19/X1: avoid SIGSEGV in case of invalid node params on EDGE --- diff --git a/src/NETGENPlugin/NETGENPlugin_Mesher.cxx b/src/NETGENPlugin/NETGENPlugin_Mesher.cxx index d06bbc2..3ef94f6 100644 --- a/src/NETGENPlugin/NETGENPlugin_Mesher.cxx +++ b/src/NETGENPlugin/NETGENPlugin_Mesher.cxx @@ -790,6 +790,7 @@ bool NETGENPlugin_Mesher::FillNgMesh(netgen::OCCGeometry& occgeom, bool isQuad = smDS->NbElements() ? smDS->GetElements()->next()->IsQuadratic() : false; StdMeshers_FaceSide fSide( face, edges, _mesh, isForwad, isQuad ); const vector& points = fSide.GetUVPtStruct(); + if ( points.empty() ) return false; // invalid node params? int i, nbSeg = fSide.NbSegments(); // remember EDGEs of fSide to treat only once