Explorar el Código

Merge pull request #5117 from sashashura/6091762766839808

Fix Heap-buffer-overflow READ in Assimp::FileSystemFilter::Cleanup
Kim Kulling hace 2 años
padre
commit
ed0dff2a7e
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      code/Common/FileSystemFilter.h

+ 1 - 1
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