From 7c9df9f98027f7c8baf633592c1ed51e11a12bf4 Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Sat, 20 Jun 2026 21:18:23 +0200 Subject: [PATCH] Don't erronously terminate on [SYN004] Non-entity type messages --- src/ifcparse/IfcFile.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ifcparse/IfcFile.cpp b/src/ifcparse/IfcFile.cpp index 1648842bcf..9f938ad41d 100644 --- a/src/ifcparse/IfcFile.cpp +++ b/src/ifcparse/IfcFile.cpp @@ -725,7 +725,8 @@ std::optionalas_entity() == nullptr) { - logger_.get().Message(Logger::LOG_ERROR, "SYN", 4, "Non entity type " + entity_type->name() + " at offset " + std::to_string(token_stream_[2].startPos)); + logger_.get().Message(Logger::LOG_ERROR, "SYN", 4, "Non-entity type " + entity_type->name() + " at offset " + std::to_string(token_stream_[2].startPos)); + current_id = 0; goto advance; }