Bug#661956: unzip fails on 5.4GB ZIP with "extra bytes at beginning or within zipfile"
The suggested zip command "-FFv" appears to have fixed the problem zipfile. The resulting fixed.zip works fine with "unzip -l". Here is what it printed, with filenames redacted consistently (when the same filename shows up twice it's been replaced with the same string). $ zip -FFv foo.zip --out fixed.zip Fix archive (-FF) - salvage what can Found end record (EOCDR) - says expect single disk archive Scanning for entries... Local ( 1 0): copying: d1/f1 (651734 bytes) Local ( 1 651817): copying: d1/d2/ (0 bytes) Local ( 1 651905): copying: d1/d2/f3 (80 bytes) Local ( 1 652083): copying: d1/f23 (891 bytes) Local ( 1 653021): copying: d1/f27 (8764 bytes) Local ( 1 661837): copying: d1/f24 (14818 bytes) Local ( 1 676709): copying: d1/f25 (17295 bytes) Local ( 1 694058): copying: d1/f26 (11461 bytes) Local ( 1 705573): copying: d1/f15 (299 bytes) Local ( 1 705942): copying: d1/f16 ... (160880743 bytes) Local ( 1 161586755): copying: d1/d3/ (0 bytes) Local ( 1 161586830): copying: d1/d3/f18 (81 bytes) Local ( 1 161586996): copying: d1/f19 (315 bytes) Local ( 1 161587381): copying: d1/f20 (522073 bytes) Local ( 1 162109524): copying: d1/f21 (698 bytes) Local ( 1 162110291): copying: d1/f22 (194 bytes) Local ( 1 162110555): copying: d1/f4 (592046801 bytes) Local ( 1 754157431): copying: d1/f5 (90537457 bytes) Local ( 1 844694963): copying: d1/f6 (211226857 bytes) Local ( 1 1055921895): copying: d1/f7 . (1145309341 bytes) Local ( 1 2201231311): copying: d1/f8 ... (1506846261 bytes) Local ( 1 3708077647): copying: d1/f9 ... (748102107 bytes) Local ( 1 4456179829): copying: d1/f10 ... (954604579 bytes) Local ( 1 5410784483): copying: d1/f11 ... (78000895 bytes) Local ( 1 5488785453): copying: d1/f12 (4077 bytes) Local ( 1 5488789605): copying: d1/f13 (4678 bytes) Local ( 1 5488794358): copying: d1/f14 (3296 bytes) Central Directory found... Cen ( 1 5488797729): updating: d1/f1 Cen ( 1 5488797828): updating: d1/d2/ Cen ( 1 5488797932): updating: d1/d2/f3 Cen ( 1 5488798046): updating: d1/f23 Cen ( 1 5488798109): updating: d1/f27 Cen ( 1 5488798177): updating: d1/f24 Cen ( 1 5488798247): updating: d1/f25 Cen ( 1 5488798317): updating: d1/f26 Cen ( 1 5488798387): updating: d1/f15 Cen ( 1 5488798473): updating: d1/f16 Cen ( 1 5488798559): updating: d1/d3/ Cen ( 1 5488798650): updating: d1/d3/f18 Cen ( 1 5488798751): updating: d1/f19 Cen ( 1 5488798837): updating: d1/f20 Cen ( 1 5488798923): updating: d1/f21 Cen ( 1 5488799008): updating: d1/f22 Cen ( 1 5488799094): updating: d1/f4 Cen ( 1 5488799185): updating: d1/f5 Cen ( 1 5488799276): updating: d1/f6 Cen ( 1 5488799367): updating: d1/f7 Cen ( 1 5488799458): updating: d1/f8 Cen ( 1 5488799549): updating: d1/f9 Cen ( 1 5488799640): updating: d1/f10 Cen ( 1 5488799743): updating: d1/f11 Cen ( 1 5488799846): updating: d1/f12 Cen ( 1 5488799949): updating: d1/f13 Cen ( 1 5488800052): updating: d1/f14 Zip64 EOCDR found ( 1 5488800155)... Zip64 EOCDL found ( 1 5488800211)... EOCDR found ( 1 5488800231)... $ echo $? 0 -andy -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Bug#661956: unzip fails on 5.4GB ZIP with "extra bytes at beginning or within zipfile"
On Tue, Mar 06, 2012 at 10:35:23PM +0100, Santiago Vila wrote: > The authors would like to have access to the zipfile. See: > > http://www.info-zip.org/phpBB3/viewtopic.php?f=7&t=385 Sorry, it has proprietary data in it that I cannot expose. I'll try the -FFv command. -andy -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Bug#661956: unzip fails on 5.4GB ZIP with "extra bytes at beginning or within zipfile"
Hi. The authors would like to have access to the zipfile. See: http://www.info-zip.org/phpBB3/viewtopic.php?f=7&t=385 -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Bug#661956: unzip fails on 5.4GB ZIP with "extra bytes at beginning or within zipfile"
Thanks for the report. I've just forwarded it upstream: http://www.info-zip.org/phpBB3/viewtopic.php?f=7&t=385 but as you point out in the second email, it is likely to be a bug in whatever implementation was used to create the zipfile, in which case there is nothing I could do about it. -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Bug#661956: unzip fails on 5.4GB ZIP with "extra bytes at beginning or within zipfile"
Note that zip-3.0-4 creates 4GB-plus zipfiles that unzip-6.0-5 is happy to read. The ZIP that is a problem is apparently from some other ZIP implementation. -andy -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Bug#661956: unzip fails on 5.4GB ZIP with "extra bytes at beginning or within zipfile"
Package: unzip Version: 6.0-5 Severity: important Dear Maintainer, unzip fails on a 5.4GB zip that Windows Explorer and Mac OS Finder can open just fine. The "extra bytes" value is just slightly off from filesize-2^32 so presumably this is a 32-bit problem. % ls -l foo.zip -rwxr-xr-x 1 andy mts 5488800253 Mar 2 12:49 foo.zip % unzip -l foo.zip warning [foo.zip]: 1193830510 extra bytes at beginning or within zipfile (attempting to process anyway) error [foo.zip]: start of central directory not found; zipfile corrupt. (please check that you have transferred or created the zipfile in the appropriate BINARY mode and that you have compiled UnZip properly) Selected extracts from "hd foo.zip" with filenames redacted: 50 4b 03 04 14 00 00 00 08 00 d3 53 56 3e 6e 0b |PK.SV>n.| 0010 6b 97 d6 f1 09 00 00 00 00 20 35 00 00 00 xx xx |k 5...xx| 0020 xx xx xx xx xx xx xx xx xx 2f xx xx xx xx xx xx |x/xx| 0030 xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx || 0040 xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx || 0050 xx xx xx ec c1 01 01 00 00 00 80 90 fe af ee 08 |xxx.| 0060 0a 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 || 0070 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 || * 1050 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 80 || 1060 d9 83 03 01 00 00 00 00 20 ff d7 46 50 55 55 55 | ..FPUUU| 1070 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 || * 2060 55 55 55 55 55 55 55 55 55 55 55 55 61 0f 0e 04 |a...| 2070 00 00 00 00 80 fc 5f 1b 41 55 55 55 55 55 55 55 |.._.AUUU| 2080 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 || * 3070 55 55 55 55 55 55 55 55 85 3d 38 10 00 00 00 00 |.=8.| 3080 00 f2 7f 6d 04 55 55 55 55 55 55 55 55 55 55 55 |...m.UUU| 3090 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 || ... 147286000 c8 9c 47 19 7b 10 52 f9 0c 98 35 4e 0a 8a df de |..G.{.R...5N| 147286010 37 4f 89 da 0e 07 fb d2 60 15 e8 d9 50 ad 50 3e |7O..`...P.P>| 147286020 2e db 94 65 db f1 87 04 dd c7 27 d2 9f 63 f0 ad |...e..'..c..| 147286030 ab e8 73 e0 ae b2 7b ac e1 d2 d7 6b e4 1b 3e 76 |..s...{k..>v| 147286040 8b c9 80 17 1c f9 c5 7b b1 eb f3 f1 eb af e2 f5 |...{| 147286050 cf 13 f2 5d 92 0e d9 3f 70 00 9e 53 1b 4d af 21 |...]...?p..S.M.!| 147286060 fa 36 08 50 8d d0 de 0c 8b 4e ff 11 5f a5 e6 a2 |.6.P.N.._...| 147286070 a6 69 1f 42 45 7b 10 7e da 44 d8 71 ed 43 50 0a |.i.BE{.~.D.q.CP.| 147286080 cb 7a 49 a9 1e ba 99 10 ed 6d a9 25 a2 3a ce cb |.zI..m.%.:..| 147286090 53 16 d5 d9 6b df 01 8d dc 7f 34 b1 8d 1b b7 f3 |S...k.4.| 1472860a0 7b 5d 9b 4b c8 31 1e cf cd e5 65 da a8 8d 05 44 |{].K.1eD| 1472860b0 56 2c d1 e9 d7 f9 57 77 f4 28 1d 74 0f 5c 38 ab |V,Ww.(.t.\8.| 1472860c0 4d cc 09 17 6e 6e b0 86 0b 73 cc fa a0 83 0e d2 |M...nn...s..| 1472860d0 a3 ee 81 a2 0b 67 5b 22 b4 53 1d 08 6f 37 e8 c5 |.g[".S..o7..| 1472860e0 68 92 ab a3 4c 08 15 18 c1 b5 42 f0 01 83 1e a7 |h...L.B.| 1472860f0 43 05 eb 73 fb f7 8d 54 d0 b1 6d db 1f 32 93 c6 |C..s...T..m..2..| 147286100 8a 45 6d 64 8e 76 f1 c6 7d 29 47 f8 37 7f af f3 |.Emd.v..})G.7...| 147286110 9f c1 e1 57 52 20 60 aa c5 3d e0 a3 fd f1 6e 4c |...WR `..=nL| 147286120 76 46 1d cd 03 fe e4 82 fc 50 f2 bd 92 ff 9c 76 |vF...P.v| 147286130 d4 80 db b9 51 9b 3b 12 b5 9b c6 31 8f 5e b1 69 |Q.;1.^.i| 147286140 c2 70 11 52 bf 14 4c a0 08 e5 70 aa a5 21 b1 8d |.p.R..L...p..!..| 147286150 c7 aa 73 38 31 7a 43 1b 8f 4f d3 19 42 24 7e 9f |..s81zC..O..B$~.| 147286160 db bf 27 b1 d7 ce 4f 81 05 84 ff 3d a1 e5 f1 32 |..'...O=...2| 147286170 f1 b9 5e 88 c4 c2 c0 54 67 19 f3 49 65 86 2a ea |..^Tg..Ie.*.| 147286180 2f 42 a8 b7 3e d4 12 f1 67 e4 aa e2 9e 44 7a 12 |/B..>...gDz.| 147286190 e2 03 ef 84 68 32 93 c5 b0 7f 91 41 4f 86 eb d2 |h2.AO...| 1472861a0 8d 2f ce be 34 15 73 23 dc 14 c9 94 45 de 58 75 |./..4.s#E.Xu| 1472861b0 ee d2 33 83 43 d1 74 58 ae 6f 00 77 15 f4 f3 ad |..3.C.tX.o.w| 1472861c0 f4 24 e4 65 4e d4 19 92 9d 3f 0c 16 1a 85 2d c7 |.$.eN?-.| 1472861d0 1a ce 5d 71 d0 13 ae 1a e7 21 8b 2d 73 d8 9b da |..]q.!.-s...| 1472861e0 64 a2 2a d6 24 e9 ff 04 f3 2d d4 27 32 df d4 b1 |d.*.$-.'2...| 1472861f0 91 a7 be 30 8c 78 7b 74 ae ab 23 b2 b6 44 ef e3 |...0.x{t..#..D..| 147286200 ed 21 6b 73 44 fd 8c 77 89 6d 77 6d 54 0a ab ce |.!ksD..w.mwmT...| 147286210 68 61 b8 40 68 9c b8 8d ca a2 df e9 ea e8 2a d1 |ha.@h.*.| 147286220 0f f2 ce d1 65 a1 07 84 70 81 05 aa 1b 27 54 75 |e...p'Tu| 147286230 21 73 84 7d ba d6 63 2b a9 51 cb f4 4f 61 84 1e |!s.}..c+.Q..Oa..| 147286240 42 ca f4 9f 40 57