Merge pull request #5117 from sashashura/6091762766839808

Fix Heap-buffer-overflow READ in Assimp::FileSystemFilter::Cleanup
pull/5120/head^2
Kim Kulling 2023-06-25 21:03:23 +02:00 committed by GitHub
commit ed0dff2a7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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