Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » GZDecompress bug
Re: GZDecompress bug [message #22682 is a reply to message #22679] Wed, 05 August 2009 05:40 Go to previous messageGo to previous message
Novo is currently offline  Novo
Messages: 1430
Registered: December 2006
Ultimate Contributor
luzr wrote on Tue, 04 August 2009 14:05

Novo wrote on Mon, 03 August 2009 23:49

GZDecompress has a bug when size of an archive is bigger than size of an archived file.

I attached a test case. Sorry, I couldn't figure out myself how to fix that.



I am quite confused with testcase. Everything seems to be OK, except that in the case with .gz with longer name (not used in testcase), the size of memory stream is not long enough..

Mirek


If I understand correctly memory stream size is supposed to be equal to the size of an archived file (because I'm extracting this file into the memory stream). At least this test works fine with archives where size of an archived file is bigger than size of an archive itself.

Another .gz file, which is not used in the testcase, is just another example. If you want to use it, then idx_file_size should be set to 80.

Sorry, I forgot to describe wrong behavior. If you extract archived file using another application (I usually use Total Commander for such operations), and using test_gunzip and compare contents of extracted files you will see the difference.

Actually, the "a.a.a" file will contain the "eeFreeFreeFreeFreeFreeFree" suffix.

I tested that on Windows Vista 32 bit.

I ran a similar application on 114 files and only these two were extracted not correctly.


Regards,
Novo
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Environment variables code page
Next Topic: ConvertInt > templatable Convert<T>
Goto Forum:
  


Current Time: Wed May 14 16:52:47 CEST 2025

Total time taken to generate the page: 0.00393 seconds