MantisBT - VTK
View Issue Details
0014008VTK(No Category)public2013-04-12 11:062014-10-02 10:07
Gert Wollny 
Berk Geveci 
normalminorhave not tried
closedwon't fix 
5.10.1 
 
TBD
incorrect functionality
0014008: vtkmetaio - compress/uncompress doesn't handle the last bytes properly when compress overflows.
MET_PerformCompression doesn't handle it properly when the compression output is larger then the input.

A test case is attached that compresses and uncompressed N bytes (N \in [1,300]) and checks the result. On one hand it uses a constant value for all N bytes, here N=1...4 fail. On the other hand the array is filled according to a[i] = char(i). Here all cases (N < 273) fail, i.e. the last output bytes are not correct.
In all failed cases the "compressed" output was larger than the input.

I think this indicates that the output buffer overflow during compression is not handled correctly.

The attached test program writes out all failing comparisons. If an abitrary additional command line parameter is given, also some info about the successful test is written out. The according CMakeLists.txt is given as comment in the C++ file.

No tags attached.
? test_MET_Compression.cc (3,829) 2013-04-12 11:06
https://www.vtk.org/Bug/file/9432/test_MET_Compression.cc
Issue History
2013-04-12 11:06Gert WollnyNew Issue
2013-04-12 11:06Gert WollnyFile Added: test_MET_Compression.cc
2014-10-02 10:07Berk GeveciNote Added: 0033430
2014-10-02 10:07Berk GeveciStatusbacklog => closed
2014-10-02 10:07Berk GeveciAssigned To => Berk Geveci
2014-10-02 10:07Berk GeveciResolutionopen => won't fix

Notes
(0033430)
Berk Geveci   
2014-10-02 10:07   
This is a MetaIO issue. I sent it to the MetaIO guys.