[haiku-bugs] Re: [Haiku] #11023: zip loses all the file's attributes, when attributes > 64 KiB

  • From: "pulkomandy" <trac@xxxxxxxxxxxx>
  • Date: Wed, 29 Oct 2014 11:05:05 -0000

#11023: zip loses all the file's attributes, when attributes > 64 KiB
-----------------------------------------------+---------------------------
   Reporter:  bbjimmy                          |      Owner:  nobody
       Type:  bug                              |     Status:  new
   Priority:  high                             |  Milestone:  R1/alpha5
  Component:  Applications/Command Line Tools  |    Version:
 Resolution:                                   |  R1/Development
 Blocked By:                                   |   Keywords:
Has a Patch:  0                                |   Blocking:
                                               |   Platform:  All
-----------------------------------------------+---------------------------

Comment (by pulkomandy):

 The attributes aren't completely dropped, when trying to decompress I get
 this error (both with unzip 5.5.0 and 6.1 betas):
 {{{
  extracting: plop
 ERROR:  invalid compressed data to inflate
 Error uncompressing file attributes.
 }}}

 It seems the function you pointed is correct (I dumped the output of it
 and it seems to be complete). After that the attributes are compressed
 using memcompress, and I thnk that's where things go wrong. In my test, a
 140K attribute which contains the data of a zp file (so is already
 compressed) got reduced to less than 6K by memcompress. It seems that the
 memcompress function isn't working well.

--
Ticket URL: <https://dev.haiku-os.org/ticket/11023#comment:4>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: