On Thu, Mar 5, 2009 at 4:16 AM, Csaba Halász <[email protected]> wrote:
> Hi!
>
> If wind_accel has zero length, then line 43
>
>  double critical_dt2 = relative_wind.length2()/wind_accel.length2();
>
> will attempt a divide by zero. A simple fix would be to check for zero
> but that would still leave the possibility of an overflow if the
> divisor is small. So a more clever check would be nice. Any
> suggestions?

Sorry for the "UP", but with a planned 2.8.1 bugfix release, I wonder
if at least the trivial fix for this could be applied, if nobody has a
better idea.
Same goes for the other div-by-zero I reported.

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

Reply via email to