Commit 9372fa0d authored by Martin Schultz's avatar Martin Schultz

refs #2517

*fixed crash by detecting bad file format early


git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@21038 383ad7c9-94d9-4d36-a494-682f7c89f535
parent b69cd2ee
......@@ -452,6 +452,11 @@ bool FileOFFPlugin::readFileOptions(QString _filename, OFFImporter& _importer) {
// Skip vertex indices
for(uint i = 0; i < tmp_count; ++i) {
if(sstr.eof())
{
emit log(LOGERR,"The OFF File is Malformatted! Aborting...");
return false;
}
sstr >> dummy_uint;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment