MantisBT - ITK | ||||||||||
View Issue Details | ||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||
0009149 | ITK | public | 2009-06-12 19:21 | 2010-10-21 12:31 | ||||||
Reporter | Carlos Barrales Ruiz | |||||||||
Assigned To | Luis Ibanez | |||||||||
Priority | normal | Severity | major | Reproducibility | always | |||||
Status | closed | Resolution | fixed | |||||||
Platform | OS | OS Version | ||||||||
Product Version | ITK-3-14 | |||||||||
Target Version | Fixed in Version | |||||||||
Resolution Date | ||||||||||
Sprint | ||||||||||
Sprint Status | ||||||||||
Summary | 0009149: Little overflow while setting bounds in itkImageSeriesReader causes reader to fail with 2D Images. | |||||||||
Description | itkImageSeriesReader.txx has a wrong pointer aritmetic confussion in method ImageSeriesReader<TOutputImage>::GenerateData() that causes my system (Mac OS X) not to load any kind of 2D images loaded from DICOM. Ex: File: /usr/local/include/InsightToolkit-3.14.0/IO/itkImageSeriesReader.cxx Line: 353 Description: itk::ERROR: ImageSeriesReader(0x19163620): Size mismatch! The size of /Users/cbruiz/data/breast.dcm is [2048, 1536, 1] and does not match the required size [0, 1536, 1] from file /Users/cbruiz/data/breast.dcm In my compiled code, the line: sliceStartIndex[m_NumberOfDimensionsInImage] = i; overwrites the nearest aligned integer position in stack. That is: validSize. Because m_NumberOfDimensionsInImage = 3; I'm sure that, as you know, any other compiler may hide or override this behaviour. I attach the patch solving the issue. Thank you. | |||||||||
Steps To Reproduce | ||||||||||
Additional Information | I'm not sure, but I believe that this piece of code: if (TOutputImage::ImageDimension != m_NumberOfDimensionsInImage) { validSize[m_NumberOfDimensionsInImage] = 1; sliceRequestedRegion.SetSize( m_NumberOfDimensionsInImage, 1 ); sliceRequestedRegion.SetIndex( m_NumberOfDimensionsInImage, 0 ); } may be problematic too. | |||||||||
Tags | No tags attached. | |||||||||
Relationships |
| |||||||||
Attached Files | itkImageSeriesReader_overflow_patch.diff (534) 2009-06-12 19:21 https://public.kitware.com/Bug/file/2322/itkImageSeriesReader_overflow_patch.diff | |||||||||
Issue History | ||||||||||
Date Modified | Username | Field | Change | |||||||
2009-06-12 19:21 | Carlos Barrales Ruiz | New Issue | ||||||||
2009-06-12 19:21 | Carlos Barrales Ruiz | File Added: itkImageSeriesReader_overflow_patch.diff | ||||||||
2009-07-06 16:23 | Bradley Lowekamp | Status | new => assigned | |||||||
2009-07-06 16:23 | Bradley Lowekamp | Assigned To | => Bradley Lowekamp | |||||||
2009-07-28 18:04 | Luis Ibanez | Relationship added | duplicate of 0009205 | |||||||
2009-07-28 18:16 | Luis Ibanez | Note Added: 0016992 | ||||||||
2009-07-28 18:17 | Luis Ibanez | Assigned To | Bradley Lowekamp => Luis Ibanez | |||||||
2009-07-28 18:17 | Luis Ibanez | Note Added: 0016994 | ||||||||
2009-07-28 18:17 | Luis Ibanez | Status | assigned => confirmed | |||||||
2009-07-28 18:50 | Luis Ibanez | Note Added: 0016998 | ||||||||
2009-07-28 18:51 | Luis Ibanez | Note Added: 0016999 | ||||||||
2009-07-28 18:51 | Luis Ibanez | Status | confirmed => resolved | |||||||
2009-07-28 18:51 | Luis Ibanez | Resolution | open => fixed | |||||||
2009-07-31 09:02 | Bradley Lowekamp | Note Added: 0017028 | ||||||||
2009-07-31 09:02 | Bradley Lowekamp | Status | resolved => feedback | |||||||
2009-07-31 09:02 | Bradley Lowekamp | Resolution | fixed => reopened | |||||||
2009-07-31 09:04 | Bradley Lowekamp | Note Added: 0017029 | ||||||||
2009-07-31 09:04 | Bradley Lowekamp | Status | feedback => resolved | |||||||
2009-07-31 09:04 | Bradley Lowekamp | Resolution | reopened => fixed | |||||||
2010-10-21 12:31 | Gabe Hart | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|