Changeset 10440

Show
Ignore:
Timestamp:
07/01/09 17:39:06 (5 years ago)
Author:
robert
Message:

From Byran Thrall, "The OpenFlight? plugin doesn't handle unrecognized options or extra
whitespace in all cases, causing it to crash."

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/src/osgPlugins/OpenFlight/ExportOptions.cpp

    r8888 r10440  
    162162            osg::notify( osg::INFO ) << "fltexp: Found: " << token << std::endl; 
    163163            setStripTextureFilePath( true ); 
     164            continue; 
     165        } 
     166        // Protect against unrecognized options without values 
     167        if ( pos == str.npos ) 
     168        { 
     169            osg::notify( osg::WARN ) << "fltexp: Bogus OptionString: " << token << std::endl; 
    164170            continue; 
    165171        }