OpenSceneGraph/include
Robert Osfield 41eb850578 Fixed Coverity reported issue.
CID 11447: Unchecked dynamic_cast (FORWARD_NULL)
Dynamic cast to pointer "dynamic_cast <struct osg::NodeCallback *>(nc->clone(this))" can return null.
Assigning null: "first" = "dynamic_cast <struct osg::NodeCallback *>(nc->clone(this))".

The clone() implementation is written using macro's so that it always returns the type of Object
being cloned so it's normally safe to assume that a dynamic_cast<> will always return a valid pointer as long
as the new T that involves creates a valid object.  However, if the class being cloned doesn't correctly
implement the clone() method then their potential for the dynamic_cast to fail and will return a NULL and will
result in a memory leak of the object of paraent class that the clone would have defaulted to.

I've tightened up the CopyOp.cpp code to check the return type and added better handling of the clone in the
osg::clone() methods so thay don't have any potential mememory leaks and report warnings to OSG_WARN when
problems are encountered.  It may be more apporpriate to throw an exception so will need to ponder this
issue further.
2011-04-28 16:33:14 +00:00
..
OpenThreads Added automatic updating of the OpenThreads version number from the CMake version numbers 2010-03-10 09:37:04 +00:00
osg Fixed Coverity reported issue. 2011-04-28 16:33:14 +00:00
osgAnimation From Piotr Gwiazdowski, "So there's config setting OSG_DISABLE_MSVC_WARNINGS which should 2011-03-09 14:15:04 +00:00
osgDB From Sukender, Here is a tiny update to FileNameUtils. It brings getPathRoot() and isAbsolutePath() to the public side of the lib. 2011-04-20 19:20:28 +00:00
osgFX From Magnus Kessler, "After a closer look at this particular issue, I used some grep and sed magic 2010-09-30 16:57:02 +00:00
osgGA From Piotr Gwiazdowski, "So there's config setting OSG_DISABLE_MSVC_WARNINGS which should 2011-03-09 14:15:04 +00:00
osgManipulator From Wang Rui, "The osgManipulator serializers are ready now. I need to modify the 2010-04-28 20:16:44 +00:00
osgParticle From Piotr Gwiazdowski, "So there's config setting OSG_DISABLE_MSVC_WARNINGS which should 2011-03-09 14:15:04 +00:00
osgPresentation Added support for new SampleDensityWhenMovingProperty into .p3d format, with it default to 0.02. 2011-03-17 17:33:02 +00:00
osgQt From Piotr Gwiazdowski, "So there's config setting OSG_DISABLE_MSVC_WARNINGS which should 2011-03-09 14:15:04 +00:00
osgShadow From Piotr Gwiazdowski, "So there's config setting OSG_DISABLE_MSVC_WARNINGS which should 2011-03-09 14:15:04 +00:00
osgSim From Piotr Gwiazdowski, "So there's config setting OSG_DISABLE_MSVC_WARNINGS which should 2011-03-09 14:15:04 +00:00
osgTerrain From Piotr Gwiazdowski, "So there's config setting OSG_DISABLE_MSVC_WARNINGS which should 2011-03-09 14:15:04 +00:00
osgText From Piotr Gwiazdowski, "So there's config setting OSG_DISABLE_MSVC_WARNINGS which should 2011-03-09 14:15:04 +00:00
osgUtil Added releaseGLObjects(State*) support into osg::FrameBufferObject, osg::RenderBin and osg::RenderStage 2011-04-20 11:45:01 +00:00
osgViewer From Craig Bosma,"Please find attached a fix for shared contexts on OS X, with the Cocoa backend. The NSOpenGLContext* _context member of GraphicsHandleCocoa was never set on successfully creation, so even if the dynamic_cast to GraphicsHandleCocoa succeeds, we get a bogus (NULL) pointer on retrieving the actual NSOpenGLContext* (line 1013). 2011-04-26 12:05:57 +00:00
osgVolume Added SampleDensityWhenMovingProperty to control LOD property of osgVolume. 2011-03-17 15:37:39 +00:00
osgWidget From Piotr Gwiazdowski, "So there's config setting OSG_DISABLE_MSVC_WARNINGS which should 2011-03-09 14:15:04 +00:00