From b3a1c72c8f03275fcfea4a1b1ff3a3350b201664 Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 2 Jun 2023 07:45:40 +0000 Subject: [PATCH] Fix Heap-buffer-overflow READ in Assimp::FileSystemFilter::Cleanup --- code/Common/FileSystemFilter.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/Common/FileSystemFilter.h b/code/Common/FileSystemFilter.h index d28233ae9..c530153d4 100644 --- a/code/Common/FileSystemFilter.h +++ b/code/Common/FileSystemFilter.h @@ -297,7 +297,7 @@ private: } const char separator = getOsSeparator(); - for (it = in.begin(); it != in.end(); ++it) { + for (it = in.begin(); it < in.end(); ++it) { const size_t remaining = std::distance(in.end(), it); // Exclude :// and \\, which remain untouched. // https://sourceforge.net/tracker/?func=detail&aid=3031725&group_id=226462&atid=1067632