[Insight-developers] Re: Invalid read in
ConnectedComponentImageFilter
Gaetan Lehmann
gaetan.lehmann at jouy.inra.fr
Tue Feb 13 04:13:22 EST 2007
Fixed in cvs.
Thanks for the report,
Gaetan
On Sun, 11 Feb 2007 14:37:15 +0100, Bill Lorensen
<bill.lorensen at gmail.com> wrote:
> Gaetan,
>
> In ConnectedComponentImageFilter, valgrind is giving an
> UMR ==8366== Invalid read of size 1
> at
> itkConnectedComponentImageFilter.txx:132
> It seems that inLineIt is being incremented after the IsAtEndOfLine(),
> causing the invalid read.
>
> 127 :
>
>
> while ((PVal != NumericTraits<InputPixelType>::Zero) &&
> 128 :
>
>
> (! inLineIt.IsAtEndOfLine()))
> 129 :
>
>
> {
> 130 :
>
>
> ++length;
> 131 :
>
>
> ++inLineIt;
> 132 :
>
>
> PVal = inLineIt.Get();
> 133 :
>
>
> }
> 134
>
> Can you take a look at this?
>
> The valgrind URL is:
> http://www.itk.org/Testing/Sites/voxel.jouy.inra.fr/Linux-gcc4.0.1-memtest1/20070210-0100-Nightly/DynamicAnalysis/__Testing_Code_Algorithms_itkThresholdMaximumConnectedComponentsImageFilterTest2.html
>
> Thanks,
>
> Bill
--
Gaëtan Lehmann
Biologie du Développement et de la Reproduction
INRA de Jouy-en-Josas (France)
tel: +33 1 34 65 29 66 fax: 01 34 65 29 09
http://voxel.jouy.inra.fr
More information about the Insight-developers
mailing list