Merge pull request #627 from turol/afl-fixes

Abort early when hitting unexpected EOF in AC3D loader
pull/629/head
Alexander Gessler 2015-08-07 20:33:55 +02:00
commit 5b1d1ec9b3
1 changed files with 1 additions and 2 deletions

View File

@ -349,8 +349,7 @@ void AC3DImporter::LoadObjectSection(std::vector<Object>& objects)
{
if(!GetNextLine())
{
DefaultLogger::get()->error("AC3D: Unexpected EOF: surface is incomplete");
break;
throw DeadlyImportError("AC3D: Unexpected EOF: surface is incomplete");
}
if (TokenMatch(buffer,"mat",3))
{