Don't emit Parsing terminated on benign files by not reading past stream in skipComment()

This commit is contained in:
Thomas Krijnen
2025-10-25 20:14:02 +02:00
parent 325745a822
commit 1594b9505c
+3
View File
@@ -126,6 +126,9 @@ size_t IfcSpfLexer::skipWhitespace() const {
}
size_t IfcSpfLexer::skipComment() const {
if (stream->eof()) {
return 0;
}
char character = stream->peek();
if (character != '/') {
return 0;