wxZipInputStream will not parse zip files greater than 2GB

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
kittymaguire
In need of some credit
In need of some credit
Posts: 3
Joined: Wed May 20, 2009 1:19 pm

wxZipInputStream will not parse zip files greater than 2GB

Post by kittymaguire » Wed May 20, 2009 1:33 pm

My application uses wzZipInputStream to extract the files from a zip file. This works fine for files below 2GB but for large files GetNextEntry returns null.

I am using 2.8.4 on Windows.

TrV
Ultimate wxWidgets Guru
Ultimate wxWidgets Guru
Posts: 630
Joined: Wed Jul 04, 2007 1:12 pm

Post by TrV » Wed May 20, 2009 6:23 pm

Just a hint : what is your file system ?
FAT32 has a 2GB file limit.

Frank
Filthy Rich wx Solver
Filthy Rich wx Solver
Posts: 211
Joined: Sat Jan 01, 2005 6:19 pm

Post by Frank » Thu May 21, 2009 8:11 am

As has the ZIP-Format.

kittymaguire
In need of some credit
In need of some credit
Posts: 3
Joined: Wed May 20, 2009 1:19 pm

Post by kittymaguire » Fri May 22, 2009 6:28 am

Frank wrote:As has the ZIP-Format.
I believe that zip format now has a limit of 4GB, as 7-zip can extract the files contained in the zip file.

kittymaguire
In need of some credit
In need of some credit
Posts: 3
Joined: Wed May 20, 2009 1:19 pm

Post by kittymaguire » Fri May 22, 2009 6:31 am

TrV wrote:Just a hint : what is your file system ?
FAT32 has a 2GB file limit.
It failed on Windows XP and Vista machines running NTFS

Frank
Filthy Rich wx Solver
Filthy Rich wx Solver
Posts: 211
Joined: Sat Jan 01, 2005 6:19 pm

Post by Frank » Fri May 22, 2009 12:40 pm

kittymaguire wrote:
Frank wrote:As has the ZIP-Format.
I believe that zip format now has a limit of 4GB, as 7-zip can extract the files contained in the zip file.
Yeah, but that's an extension. The orginal ZIP-Spec uses a signed integer.

So my guess would be that wx implemented it's Zip-Routines from the original Zip-Docs.

Post Reply