From d2c6e64a1122884570caf4aaa589d810f5351f28 Mon Sep 17 00:00:00 2001 From: Kim Kulling Date: Thu, 13 Mar 2025 10:17:43 +0100 Subject: [PATCH] Fix: Avoid override in line parsing (#6048) Origin: https://github.com/assimp/assimp/commit/d2c6e64a1122884570caf4aaa589d810f5351f28 * Fix: Avoid override in line parsing - closes https://github.com/assimp/assimp/issues/6026 * Update ParsingUtils.h --- code/ParsingUtils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/ParsingUtils.h b/code/ParsingUtils.h index 2371ee6..1617112 100644 --- a/code/ParsingUtils.h +++ b/code/ParsingUtils.h @@ -184,7 +184,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; } -- 2.33.0