Bug: ZipArchive crashes if zip is empty

What it says on the tin: a place to discuss proposed new features.
Post Reply
Nils
Greenskin
Posts: 120
Joined: Tue Sep 05, 2006 8:50 pm
Location: Neuss, Germany
Contact:

Bug: ZipArchive crashes if zip is empty

Post by Nils »

Hello,

the zip function zzip_dir_stat in function ZipArchive::exists() crashes if there are no files in the archive, the function should therefore return false if the archive is empty to prevent a crash.

Regards,

Nils
Nils
Greenskin
Posts: 120
Joined: Tue Sep 05, 2006 8:50 pm
Location: Neuss, Germany
Contact:

Post by Nils »

Additionally, the functions exists() and getModifiedTime() may be made const.
User avatar
jacmoe
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 20570
Joined: Thu Jan 22, 2004 10:13 am
Location: Denmark
x 179
Contact:

Post by jacmoe »

Patch on tracker? :)
/* Less noise. More signal. */
Ogitor Scenebuilder - powered by Ogre, presented by Qt, fueled by Passion.
OgreAddons - the Ogre code suppository.
Post Reply