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

Julien Jomier jjomier at cs.unc.edu
Mon Jun 7 13:17:16 EDT 2004


Hi Peter,

Thanks for the report. I don't know why I was using float type for this
variable.

Do you have write access to the CVS repository? If yes, feel free to check
in the modifications otherwise let me know and I'll apply the patch.

thanks again,

Julien

> -----Original Message-----
> From: insight-developers-bounces at itk.org 
> [mailto:insight-developers-bounces at itk.org] On Behalf Of Peter Cech
> Sent: Monday, June 07, 2004 1:05 PM
> To: insight-developers at itk.org
> Subject: [Insight-developers] MetaIO compression broken 
> (patch attached)
> 
> 
> 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
> 
> 



More information about the Insight-developers mailing list