bo-yang / plan9front

Automatically exported from code.google.com/p/plan9front
0 stars 0 forks source link

unzip/zipfs fail to handle some zip files #139

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
example:

ns% hget https://github.com/skybrian/Gongo/zipball/master >gongo.zip
ns% file gongo.zip
gongo.zip: zip archive
ns% unzip -f gongo.zip
unzip: bad magic number for table of contents of gongo.zip: 0x66336434
trying to re-run assuming -s
ns% fs/zipfs gongo.zip
fs/zipfs: bad magic number on directory

Original issue reported on code.google.com by stanley....@gmail.com on 31 Jul 2012 at 2:42

GoogleCodeExporter commented 9 years ago
the problem is the variable length comment part of the 
"end of table of content" record. now trying to skip over
it finding the magic marker at the start of the record.

(commited in r63eafd313cea)

Original comment by cinap_le...@felloff.net on 6 Aug 2012 at 12:30