Notes |
|
(0003289)
|
Lydia Ng
|
2005-11-22 11:21
|
|
|
|
(0003342)
|
user390
|
2005-11-30 14:17
|
|
Thanks for pointing this out. Its fixed.
http://www.itk.org/cgi-bin/viewcvs.cgi/Code/Common/itkPolygonCell.txx?root=Insight&r1=text&tr1=1.30&r2=text&tr2=1.29&diff_format=h [^]
Notes:
As you mentioned VS8 checks if an iterator is dereferencible prior to derefencing it.. (probably in one of the debug modes..)
#if _HAS_ITERATOR_DEBUGGING
if (this->_Mycont == 0
|| _Myptr < ((_Myvec *)this->_Mycont)->_Myfirst
|| ((_Myvec *)this->_Mycont)->_Mylast <= _Myptr)
{
_DEBUG_ERROR("vector iterator not dereferencable");
_SCL_SECURE_OUT_OF_RANGE;
}
#else
....
Prior to copying the points from another cell, the Polygon cell now checks if the other cell had any points at all, avoiding bogus dereferences. The usual begin and end methods are not checked however for efficieny. This should fix the bugs. |
|
|
(0007841)
|
Bill Lorensen
|
2007-06-08 14:40
|
|
|
|
(0009220)
|
Luis Ibanez
|
2007-09-21 16:33
|
|
changing status from 'resolved' to 'closed'
The issue was already fixed in the CVS trunk. |
|