[ODE] Bug in collision_cylinder_trimesh.cpp

Jaroslav Sinecky sinecky at telefonica.net
Fri Mar 31 00:14:31 MST 2006


Yes, I think we already talked about this. There should be eighter checks or
the buffer should be dynamic - similar as in
collision_trimesh_ccylinder.cpp. (although ALLOCA should be prefered IMHO).

Jaroslav

> -----Original Message-----
> From: ode-bounces at q12.org [mailto:ode-bounces at q12.org]On Behalf
> Of Anton Savin
> Sent: Friday, March 31, 2006 8:10 AM
> To: ode at q12.org
> Subject: [ODE] Bug in collision_cylinder_trimesh.cpp
>
>
> Hello all,
>
> I've found a bug in collision_cylinder_trimesh.cpp:
> when cylinder intersects with too many triangles of trimesh (45 in my
> case), application crashes because array
> _sCylinderTrimeshColliderData::gLocalContacts becomes overflown.
>
> In my code I increased constant gMaxLocalContacts from 32 to 128 and added
> overflow checks everywhere, but is it correct?
>
> --
> Cheers,
> Anton Savin
>
> _______________________________________________
> ODE mailing list
> ODE at q12.org
> http://q12.org/mailman/listinfo/ode



More information about the ODE mailing list