MantisBT - ITK
View Issue Details
0005134ITKpublic2007-06-06 17:492007-09-17 09:53
J.R. Blackham 
Julien Jomier 
normalmajoralways
closedfixed 
 
 
0005134: Incorrect MetaImage Header causes crash
If you try to read a "MetaImage" whose header points to a non-existant file itk crashes.

It crashes in Utilities/MetaIO/metaImage.cxx at about line 1260 in the bool MetaImage::ReadStream(...) function where it calls:
m_ReadStream->close();
but it appears that m_ReadStream has been set to NULL in a previous call to MetaObject::ReadStream() at line 1077 in metaImage.cxx
No tags attached.
tgz MetaImageBug.tgz (1,455) 2007-09-06 16:35
https://public.kitware.com/Bug/file/1140/MetaImageBug.tgz
Issue History
2007-09-06 16:32Luis IbanezAssigned ToJim Miller => Julien Jomier
2007-09-06 16:34Luis IbanezNote Added: 0008870
2007-09-06 16:34Luis IbanezStatusassigned => confirmed
2007-09-06 16:35Luis IbanezFile Added: MetaImageBug.tgz
2007-09-10 11:03Julien JomierNote Added: 0008902
2007-09-10 11:03Julien JomierStatusconfirmed => closed
2007-09-17 09:51Julien JomierStatusclosed => resolved
2007-09-17 09:51Julien JomierResolutionopen => fixed
2007-09-17 09:53Julien JomierStatusresolved => closed

Notes
(0008870)
Luis Ibanez   
2007-09-06 16:34   
We verified that the code actually crashes
(0008902)
Julien Jomier   
2007-09-10 11:03   
This is now fixed in CVS and will be included in the next release.
Thanks for the report!