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.
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 »

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 »

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 »

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 »

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 »

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 »

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.