View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0008288ITKpublic2008-12-11 11:532010-11-17 21:01
ReporterJulien Michel 
Assigned ToBradley Lowekamp 
PrioritynormalSeveritymajorReproducibilityalways
StatusassignedResolutionopen 
PlatformOSOS Version
Product VersionITK-3-10 
Target VersionFixed in Version 
Summary0008288: itk::NCCRegistrationFunction produces segfault when used in a streaming context
DescriptionThe segmentation fault occurs in the ComputeUpdate() method when accessing to the deformation field pixels :

const DeformationPixelType vec = this->GetDeformationField()->GetPixel(index);

There is no check on index to see if it is inside the buffered region, and in a streamed context it might be off the region.

Replacing this line by :

DeformationPixelType vec;
  vec.Fill(0);
  if(this->GetDeformationField()->GetBufferedRegion().IsInside(index))
  {
    vec = this->GetDeformationField()->GetPixel(index);
  }

fixed the problem, without any changes on the non-streamed version results.
TagsNo tags attached.
Resolution Date
Sprint
Sprint Status
Attached Files

 Relationships

  Notes
(0023371)
Hans Johnson (developer)
2010-11-17 21:01

Brad,

The proposed solution does not seem appropriate for this problem. As the defacto streaming expert, would you take a look at the proposed solution?

Thanks,
Hans

 Issue History
Date Modified Username Field Change
2008-12-11 11:53 Julien Michel New Issue
2010-11-02 13:35 Hans Johnson Status new => assigned
2010-11-02 13:35 Hans Johnson Assigned To => kentwilliams
2010-11-17 20:59 Hans Johnson Assigned To kentwilliams => Bradley Lowekamp
2010-11-17 21:01 Hans Johnson Note Added: 0023371


Copyright © 2000 - 2018 MantisBT Team