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

For example (since osgconv passes the same Options object to import and
export):

osgconv -O "units=FEET convertToFeet" somefile.flt convfile.flt  //
crashes
osgconv -O "units=FEET convertToFeet " somefile.flt convfile.flt //
works
osgconv -O "convertToFeet units=FEET " somefile.flt convfile.flt //
crashes
osgconv -O "convertToFeet units=FEET" somefile.flt convfile.flt  //
works

The attached src/osgPlugins/openflight/exportoptions.cpp (from SVN rev
10428) fixes the problem.

--
Bryan Thrall
FlightSafety International
[email protected]
 

Attachment: exportoptions.cpp
Description: exportoptions.cpp

_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to