From 8122d4d2480164ce6367fc565b17337c4d2271bb Mon Sep 17 00:00:00 2001 From: mpv Date: Wed, 28 Nov 2018 10:53:16 +0300 Subject: [PATCH] Potential fix for the issue #2752 : ASAN : extrusion cut crash . --- src/FeaturesPlugin/FeaturesPlugin_Validators.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/FeaturesPlugin/FeaturesPlugin_Validators.cpp b/src/FeaturesPlugin/FeaturesPlugin_Validators.cpp index ccb43b406..bc2f92a4d 100644 --- a/src/FeaturesPlugin/FeaturesPlugin_Validators.cpp +++ b/src/FeaturesPlugin/FeaturesPlugin_Validators.cpp @@ -555,7 +555,8 @@ bool FeaturesPlugin_ValidatorExtrusionDir::isValid( } } - if(!aDirShape.get()) { + if(!aDirShape.get() || aDirShape->isNull() || + aDirShape->shapeType() != GeomAPI_Shape::EDGE) { // Check that dir can be empty. if(!isShapesCanBeEmpty(aCheckAttribute, theError)) { theError = "Error: Base objects list contains vertex or edge, so attribute \"%1\" " -- 2.39.2