View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0014008VTK(No Category)public2013-04-12 11:062014-10-02 10:07
ReporterGert Wollny 
Assigned ToBerk Geveci 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusclosedResolutionwon't fix 
PlatformOSOS Version
Product Version5.10.1 
Target VersionFixed in Version 
Summary0014008: vtkmetaio - compress/uncompress doesn't handle the last bytes properly when compress overflows.
DescriptionMET_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.

TagsNo tags attached.
ProjectTBD
Typeincorrect functionality
Attached Files? file icon test_MET_Compression.cc [^] (3,829 bytes) 2013-04-12 11:06

 Relationships

  Notes
(0033430)
Berk Geveci (administrator)
2014-10-02 10:07

This is a MetaIO issue. I sent it to the MetaIO guys.

 Issue History
Date Modified Username Field Change
2013-04-12 11:06 Gert Wollny New Issue
2013-04-12 11:06 Gert Wollny File Added: test_MET_Compression.cc
2014-10-02 10:07 Berk Geveci Note Added: 0033430
2014-10-02 10:07 Berk Geveci Status backlog => closed
2014-10-02 10:07 Berk Geveci Assigned To => Berk Geveci
2014-10-02 10:07 Berk Geveci Resolution open => won't fix


Copyright © 2000 - 2018 MantisBT Team