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   |
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
|
|
|
 |
|
GZDecompress bug
By: Novo on Tue, 04 August 2009 05:49
|
 |
|
Re: GZDecompress bug
By: mirek on Tue, 04 August 2009 20:05
|
 |
|
Re: GZDecompress bug
By: Novo on Wed, 05 August 2009 05:40
|
 |
|
Re: GZDecompress bug
By: mirek on Wed, 05 August 2009 08:23
|
 |
|
Re: GZDecompress bug
By: mirek on Wed, 05 August 2009 08:49
|
 |
|
Re: GZDecompress bug
By: Novo on Wed, 05 August 2009 17:17
|
 |
|
Re: GZDecompress bug
By: mirek on Wed, 05 August 2009 17:26
|
 |
|
Re: GZDecompress bug
By: Novo on Wed, 05 August 2009 19:16
|
 |
|
Re: GZDecompress bug
By: mirek on Wed, 05 August 2009 20:21
|
 |
|
Re: GZDecompress bug
By: Novo on Wed, 12 August 2009 04:34
|
 |
|
Re: GZDecompress bug
By: mirek on Wed, 12 August 2009 09:25
|
 |
|
Re: GZDecompress bug
By: Novo on Fri, 14 August 2009 06:07
|
Goto Forum:
Current Time: Wed May 14 22:46:17 CEST 2025
Total time taken to generate the page: 0.02442 seconds
|