[Insight-developers] MetaIO compression broken (patch attached)

Peter Cech pcech at vision.ee.ethz.ch
Mon Jun 7 13:04:46 EDT 2004


Hi,

I was trying to use MetaIO compression and found that the code
contains a serious bug. Variable m_CompressedDataSize in class
MetaObject is of type float. Insufficient dynamic range of float
(especially its ascii representation) can lead to truncation of
compressed stream.

I'm not aware of any reason why m_CompressedDataSize should use floating
point representation, therefore a natural fix is to make an integer type
of it (see attached patch).

Regards,
Peter Cech

-------------- next part --------------
A non-text attachment was scrubbed...
Name: MetaIO_Compression_fix.patch.gz
Type: application/x-gunzip
Size: 1054 bytes
Desc: not available
Url : http://www.itk.org/mailman/private/insight-developers/attachments/20040607/959c0991/MetaIO_Compression_fix.patch.bin


More information about the Insight-developers mailing list