From 70c4eb4d3a47feb3c532290354c38425cc89854a Mon Sep 17 00:00:00 2001 From: aramis_acg Date: Tue, 16 Mar 2010 00:04:17 +0000 Subject: [PATCH] Fix buffer overrun in Obj-loader (this is related to [2970556]). git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@610 67173fc5-114c-0410-ac8e-9d2fd5bffc1f --- code/ObjFileParser.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/code/ObjFileParser.cpp b/code/ObjFileParser.cpp index bc028e50e..a26ecfd77 100644 --- a/code/ObjFileParser.cpp +++ b/code/ObjFileParser.cpp @@ -201,9 +201,10 @@ void ObjFileParser::copyNextLine(char *pBuffer, size_t length) size_t index = 0; while (m_DataIt != m_DataItEnd) { - if (*m_DataIt == '\n' || *m_DataIt == '\r') + // (Aramis) removed assertion (index