Message70968
| Author |
alonwas |
| Recipients |
alonwas |
| Date |
2008年08月10日.09:27:26 |
| SpamBayes Score |
4.5982224e-06 |
| Marked as misclassified |
No |
| Message-id |
<1218360448.56.0.0890131265061.issue3535@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
zipfile complains about "Bad magic number for central directory" when I
give it files over 2GB. I believe the problem is that the offset for the
central directory should be read as an unsigned long rather than as a
signed long. Modifying structEndArchive from "<4s4H2lH" to "<4s4H2LH"
(note the capital L) should probably fix it. When the offset is >2^31
you get a negative offset and the code fails to find the central
directory. I'll appreciate it if someone more knowledgeable looks at the
problem and the suggested fix, Thanks, Alon |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2008年08月10日 09:27:28 | alonwas | set | recipients:
+ alonwas |
| 2008年08月10日 09:27:28 | alonwas | set | messageid: <1218360448.56.0.0890131265061.issue3535@psf.upfronthosting.co.za> |
| 2008年08月10日 09:27:27 | alonwas | link | issue3535 messages |
| 2008年08月10日 09:27:26 | alonwas | create |
|