[Insight-developers] itkBoundingBoxTest
Luis Ibanez
ibanez@cs.unc.edu
Sun, 18 Feb 2001 20:10:17 -0500 (EST)
Hi,
itkBoundingBoundTest is producing a seg fault.
it seems to be caused by the test for insertion
of points in the VectorContainer of points.
VectorContainer is using a method
InserElement( id, element )
with id = 0;
internally the VectorContainer is a stl::vector,
so it verifies if the size is large enough to
receive an element at this position (id).
When the size is insuficient, the stl::vector
is resized: itkVectorContainer.txx (line 98):
if( id > this->VectorType::size() ) ...
It seems that the comparision should be done
with id+1, to prevent the use of a void stl::vector.
Can someone verify this ?
Thanks
Luis