Merge pull request #5138 from sashashura/4709035804065792

Fix UNKNOWN WRITE in Assimp::SortByPTypeProcess::Execute
pull/5130/head^2
Kim Kulling 2023-06-15 10:39:17 +02:00 committed by GitHub
commit 3939d35f18
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -284,7 +284,7 @@ void OFFImporter::InternReadFile( const std::string& pFile, aiScene* pScene, IOS
for (unsigned int i = 0; i < numFaces; ) {
if(!GetNextLine(buffer,line)) {
ASSIMP_LOG_ERROR("OFF: The number of faces in the header is incorrect");
break;
throw DeadlyImportError("OFF: The number of faces in the header is incorrect");
}
unsigned int idx;
sz = line; SkipSpaces(&sz);