From: eap Date: Thu, 2 Apr 2020 18:14:06 +0000 (+0300) Subject: IPAL0054628: Medial Axis failure and NETGEN SIGSEGV X-Git-Tag: V9_5_0a2^0 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=7e4e56931c33d25b8feb290ccddf6820b8747cff;p=plugins%2Fnetgenplugin.git IPAL0054628: Medial Axis failure and NETGEN SIGSEGV Prevent SIGSEGV --- diff --git a/src/NETGENPlugin/NETGENPlugin_Mesher.cxx b/src/NETGENPlugin/NETGENPlugin_Mesher.cxx index d1b674f..c87731e 100644 --- a/src/NETGENPlugin/NETGENPlugin_Mesher.cxx +++ b/src/NETGENPlugin/NETGENPlugin_Mesher.cxx @@ -2483,7 +2483,8 @@ int NETGENPlugin_Mesher::FillSMesh(const netgen::OCCGeometry& occgeo, // Create and insert nodes into nodeVec // ------------------------------------- - nodeVec.resize( nbNod + 1 ); + if ( nbNod > nbInitNod ) + nodeVec.resize( nbNod + 1 ); for ( i = nbInitNod+1; i <= nbNod; ++i ) { const netgen::MeshPoint& ngPoint = ngMesh.Point(i);