[Insight-developers] Registration Valgrind Issues:	itkVectorResampleImageFilter.hxx, UMR m_DefaultPixelValue
    Luis Ibanez 
    luis.ibanez at kitware.com
       
    Sun Aug 14 10:59:56 EDT 2011
    
    
  
Hi Brian,
Some of the Uninitialized Memory Read (UMR) reported here:
http://www.cdash.org/CDash/viewDynamicAnalysisFile.php?id=2465926
are the consequence of not initializing the member variable
                 m_DefaultPixelValue
in itkVectorResampleImageFilter.hxx
currently, the line 45 is commented out in the constructor:
 45   //m_DefaultPixelValue.Fill(0);
Is this because the filter is expected to work with pixel
vector types that do not derive from itk::Array  ?
If so, you may want to use the same approach that
was used in the Statistics framework, where the
Traits provide a way of initializing vectors.
It will be along the lines of:
m_DefaultPixelValue = NumericTraits< PixelType >::ZeroValue(
m_DefaultPixelValue );
A Gerrit patch for this issue is now available here:
http://review.source.kitware.com/#change,2464
    Luis
    
    
More information about the Insight-developers
mailing list