Merge pull request #5117 from sashashura/6091762766839808

Fix Heap-buffer-overflow READ in Assimp::FileSystemFilter::Cleanup
This commit is contained in:
Kim Kulling
2023-06-25 21:03:23 +02:00
committed by GitHub

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