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 » Tue Dec 02, 2008 4:59 pm

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
0 x

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

Post by Nils » Tue Dec 02, 2008 5:01 pm

Additionally, the functions exists() and getModifiedTime() may be made const.
0 x

User avatar
jacmoe
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 20570
Joined: Thu Jan 22, 2004 10:13 am
Location: Denmark
Contact:

Post by jacmoe » Tue Dec 02, 2008 6:09 pm

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

Post Reply