Fix: Avoid override in line parsing (#6048)

* Fix: Avoid override in line parsing

- closes https://github.com/assimp/assimp/issues/6026

* Update ParsingUtils.h
This commit is contained in:
Kim Kulling
2025-03-13 10:17:43 +01:00
committed by GitHub
parent bcf11c252a
commit d2c6e64a11

View File

@@ -167,7 +167,7 @@ AI_FORCE_INLINE bool GetNextLine(const char_t *&buffer, char_t out[BufferSize])
}
*_out = (char_t)'\0';
while (IsLineEnd(*buffer) && '\0' != *buffer) {
while (IsLineEnd(*buffer) && '\0' != *buffer && buffer != end) {
++buffer;
}