[Insight-developers] Bug in itkArray.hxx
Johnson, Hans J
hans-johnson at uiowa.edu
Tue Apr 9 14:36:20 EDT 2013
All,
I came across this code when tracking down some bugs that are presenting themselves in Slicer.
This looks like a serious bug that should be eliminated from ITK.
Hans
"itkArray.hxx" 189L, 5314C written
63 /** Constructor with user specified data */
64 template< typename TValueType >
65 Array< TValueType >
66 ::Array(const ValueType *datain, SizeValueType sz, bool LetArrayManageMemory)
67 {
68 vnl_vector< TValueType >::data = const_cast< TValueType * >( datain );
69 // Argh!! Discard constness WRONG.!!
70 vnl_vector< TValueType >::num_elmts = sz;
71 m_LetArrayManageMemory = LetArrayManageMemory;
72 }
73
________________________________
Notice: This UI Health Care e-mail (including attachments) is covered by the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is confidential and may be legally privileged. If you are not the intended recipient, you are hereby notified that any retention, dissemination, distribution, or copying of this communication is strictly prohibited. Please reply to the sender that you have received the message in error, then delete it. Thank you.
________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-developers/attachments/20130409/2ce0da2c/attachment.htm>
More information about the Insight-developers
mailing list