From cdcd22f86550a25b6fc5c1b9ba5e5dd2ab326958 Mon Sep 17 00:00:00 2001 From: dataisland Date: Mon, 9 Sep 2024 14:35:43 -0500 Subject: [PATCH] Avoid input is wrong --- include/assimp/ParsingUtils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/assimp/ParsingUtils.h b/include/assimp/ParsingUtils.h index ecd30a0e5..28609f347 100644 --- a/include/assimp/ParsingUtils.h +++ b/include/assimp/ParsingUtils.h @@ -103,7 +103,7 @@ AI_FORCE_INLINE bool IsSpaceOrNewLine(char_t in) { // --------------------------------------------------------------------------------- template AI_FORCE_INLINE bool SkipSpaces(const char_t *in, const char_t **out, const char_t *end) { - while (in != end && (*in == (char_t)' ' || *in == (char_t)'\t')) { + while (in >= end && (*in == (char_t)' ' || *in == (char_t)'\t')) { ++in; } *out = in;