MantisBT - ITK | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0008288 | ITK | public | 2008-12-11 11:53 | 2010-11-17 21:01 | |
| Reporter | Julien Michel | ||||
| Assigned To | Bradley Lowekamp | ||||
| Priority | normal | Severity | major | Reproducibility | always |
| Status | assigned | Resolution | open | ||
| Platform | OS | OS Version | |||
| Product Version | ITK-3-10 | ||||
| Target Version | Fixed in Version | ||||
| Resolution Date | |||||
| Sprint | |||||
| Sprint Status | |||||
| Summary | 0008288: itk::NCCRegistrationFunction produces segfault when used in a streaming context | ||||
| Description | The 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. | ||||
| Steps To Reproduce | |||||
| Additional Information | |||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | |||||
| 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 | |||
| Notes | |||||
|
|
|||||
|
|
||||