From 7e4e56931c33d25b8feb290ccddf6820b8747cff Mon Sep 17 00:00:00 2001 From: eap Date: Thu, 2 Apr 2020 21:14:06 +0300 Subject: [PATCH] IPAL0054628: Medial Axis failure and NETGEN SIGSEGV Prevent SIGSEGV --- src/NETGENPlugin/NETGENPlugin_Mesher.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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);