Revision: 49330
http://brlcad.svn.sourceforge.net/brlcad/?rev=49330&view=rev
Author: erikgreenwald
Date: 2012-02-08 13:27:58 +0000 (Wed, 08 Feb 2012)
Log Message:
-----------
test for overflow, return DBL_MAX if an overflow on double occurs. Cov325
Modified Paths:
--------------
brlcad/trunk/src/conv/ply-g.c
Modified: brlcad/trunk/src/conv/ply-g.c
===================================================================
--- brlcad/trunk/src/conv/ply-g.c 2012-02-08 13:02:01 UTC (rev 49329)
+++ brlcad/trunk/src/conv/ply-g.c 2012-02-08 13:27:58 UTC (rev 49330)
@@ -345,6 +345,8 @@
}
}
+ if( val > (DBL_MAX / scale_factor) )
+ return DBL_MAX;
return val*scale_factor;
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits