TC unable to unpack ZIP containing folder named somethin.lnk

Please report only one bug per message!

Moderators: Stefan2, white, sheep, Hacker

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

Post by *Solf » 2014-01-31, 18:19 UTC

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: 2020
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Post by *white » 2014-01-31, 18:54 UTC

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: 36255
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) » 2014-02-02, 11:50 UTC

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
http://www.ghisler.com

User avatar
white
Power Member
Power Member
Posts: 2020
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Post by *white » 2014-02-02, 18:09 UTC

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: 36255
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) » 2014-02-03, 15:39 UTC

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

Post Reply