From 20ef807982a8ebe970dcd135d7d0631010421bf1 Mon Sep 17 00:00:00 2001 From: Alexandre Avenel Date: Fri, 29 Dec 2017 17:56:30 +0100 Subject: [PATCH] Remove assertion in ObjFileImporter This assertion is already handled by an exception, and could lead to a crash when parsing an ill-formed OBJ file. --- code/ObjFileImporter.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/code/ObjFileImporter.cpp b/code/ObjFileImporter.cpp index 10c463c36..11f4b9487 100644 --- a/code/ObjFileImporter.cpp +++ b/code/ObjFileImporter.cpp @@ -474,7 +474,6 @@ void ObjFileImporter::createVertexArray(const ObjFile::Model* pModel, if ( !pModel->m_TextureCoord.empty() && vertexIndex < pSourceFace->m_texturCoords.size()) { const unsigned int tex = pSourceFace->m_texturCoords.at( vertexIndex ); - ai_assert( tex < pModel->m_TextureCoord.size() ); if ( tex >= pModel->m_TextureCoord.size() ) throw DeadlyImportError("OBJ: texture coordinate index out of range");