unzipping old zip archive

Discussion of bugs and problems found in Altap Salamander. In your reports, please be as descriptive as possible, and report one incident per report. Do not post crash reports here, send us the generated bug report by email instead, please.
User avatar
SvA
Posts: 483
Joined: 29 Mar 2006, 02:41
Location: DE

unzipping old zip archive

Post by SvA »

I tried to unpack some very old zip archives. Salamander's Zip plugin did better on it than any other unzipper i tried (pkzip 2.50, 7-zip 4.42, InfoZip's unzip 5.50, XP's built-in zip support). The archives do not contain any errors, just files compressed with methods no longer in use.

Salamander's Zip plugin still it fails on any files compressed with the Reduced method.

If you could support this, that was great, if not, no problem (it is obsolete anyway).

However, the error message displayed by the plugin confused me. It read: Error in compressed data.

This suggests to me the archive was corrupted. I would expect to see an error message stating: Unsupported compression method

If it helps, I can send you an archive (~200k) and the accompanying DOS unpacker pkunzip.exe V. 0.92 (~18k)
Jan Rysavy
ALTAP Staff
ALTAP Staff
Posts: 5231
Joined: 08 Dec 2005, 06:34
Location: Novy Bor, Czech Republic
Contact:

Post by Jan Rysavy »

Hello, please send me this ZIP archive.
Lukas Cerman
Plugin Developer
Plugin Developer
Posts: 36
Joined: 11 Dec 2005, 20:08
Contact:

Post by Lukas Cerman »

SvA,

the unreduce method is supported by our ZIP plugin, maybe the file is corrupted or in some unexpected format.

Please, could you send me it? Including the packer/unpacker software which can handle such archive?

Sincerely
Lukas Cerman
therube
Posts: 674
Joined: 14 Dec 2006, 06:22

Post by therube »

SvA is likely running into this situation:
Why does UnZip say "'shrink' method not supported"?

http://www.info-zip.org/FAQ.html#unshrink
Or perhaps not.
Looks like SS supports both the older Shrink & Implode (zip) compression methods.

Perhaps it was a 'reduce' algorithm?
WinXP Pro SP3 or Win7 x86 | SS 2.54
Lukas Cerman
Plugin Developer
Plugin Developer
Posts: 36
Joined: 11 Dec 2005, 20:08
Contact:

Post by Lukas Cerman »

therube wrote:SvA is likely running into this situation:
Why does UnZip say "'shrink' method not supported"?

http://www.info-zip.org/FAQ.html#unshrink
Or perhaps not.
Looks like SS supports both the older Shrink & Implode (zip) compression methods.

Perhaps it was a 'reduce' algorithm?
All of the following compression methods are supported:

0 - The file is stored (no compression)
1 - The file is Shrunk
2 - The file is Reduced with compression factor 1
3 - The file is Reduced with compression factor 2
4 - The file is Reduced with compression factor 3
5 - The file is Reduced with compression factor 4
6 - The file is Imploded
7 - Reserved for Tokenizing compression algorithm
8 - The file is Deflated
9 - Enhanced Deflating using Deflate64(tm)

With regards
Lukas Cerman
Petr Solin
ALTAP Staff
ALTAP Staff
Posts: 1112
Joined: 08 Dec 2005, 09:13
Location: Novy Bor, Czech Republic
Contact:

Post by Petr Solin »

I have fixed this problem. It was bug in caching of bits read from compressed stream.
Post Reply