From ff6e13e820f033edea5c6b3aa3b0feec59959aa3 Mon Sep 17 00:00:00 2001 From: Artem Zhidkov Date: Sat, 25 Apr 2020 22:05:58 +0300 Subject: [PATCH] Fix the stack overflow crash when dumping nested sketches. --- src/ModelHighAPI/ModelHighAPI_Dumper.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ModelHighAPI/ModelHighAPI_Dumper.cpp b/src/ModelHighAPI/ModelHighAPI_Dumper.cpp index 2c8d45c01..5352af497 100644 --- a/src/ModelHighAPI/ModelHighAPI_Dumper.cpp +++ b/src/ModelHighAPI/ModelHighAPI_Dumper.cpp @@ -1578,6 +1578,7 @@ ModelHighAPI_Dumper& operator<<(ModelHighAPI_Dumper& theDumper, // store all not-dumped entities first std::set aNotDumped = theDumper.myNotDumpedEntities; + theDumper.clearNotDumped(); theDumper.myDumpStorage->reserveBuffer(); std::set::const_iterator anIt = aNotDumped.begin(); for (; anIt != aNotDumped.end(); ++anIt) { -- 2.39.2