TC unable to unpack ZIP containing folder named somethin.lnk

Please report only one bug per message!

Moderators: white, Hacker, petermad, Stefan2

Solf
Junior Member
Junior Member
Posts: 10
Joined: 2010-05-24, 10:51 UTC

Post by *Solf »

white wrote: Copy.com seems to be a file sharing website.
Yes, it is file syncing / file sharing website similar to dropbox.

Yes, the zip was created by this service when I requested download of an entire folder via their web site.

IOW -- it indeed might have something to do with streaming & how ZIP handles streams.
User avatar
white
Power Member
Power Member
Posts: 4576
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Post by *white »

MVV wrote:white, bit 3 is set but sizes are not zero, they are 0xFFFFFFFF.
I know. I said so :P
If bit 3 is set the value must be zero, probably for (old) programs that look there anyway. Like Total Commander ;-)
MVV wrote:I checked 7-Zip (9.20) sources, it detects descriptor only by bit 3.
Makes sense.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48005
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

The problem is indeed that the sizes are NOT set (which means that the sizes and CRC are stored after the compressed data), but this doesn't work because the file is STORED. This is clearly against ZIP standards. I will use the size from the central directory to handle this.
Author of Total Commander
https://www.ghisler.com
User avatar
white
Power Member
Power Member
Posts: 4576
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Post by *white »

ghisler(Author) wrote:The problem is indeed that the sizes are NOT set (which means that the sizes and CRC are stored after the compressed data), but this doesn't work because the file is STORED. This is clearly against ZIP standards. I will use the size from the central directory to handle this.
Just assume value 0 when bit 3 of the general purpose flag is set. Then your code works..
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48005
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Yes, 0 would be the correct value.
Author of Total Commander
https://www.ghisler.com
Post Reply