void-packages/srcpkgs/physfs/patches/archivers-zip.c-fix-uninitialized-use-of-array.patch
Juan RP a005cdc402 physfs: update to 2.0.1.
--HG--
extra : convert_revision : 80adcf4d92de3bd8441d50c45c056eb7c40d62c9
2010-03-26 12:46:20 +01:00

11 lines
443 B
Diff

--- archivers/zip.c.orig 2010-03-26 12:41:29.789614960 +0100
+++ archivers/zip.c 2010-03-26 12:42:02.340615428 +0100
@@ -375,7 +375,7 @@ static int ZIP_fileClose(fvoid *opaque)
static PHYSFS_sint64 zip_find_end_of_central_dir(void *in, PHYSFS_sint64 *len)
{
PHYSFS_uint8 buf[256];
- PHYSFS_uint8 extra[4];
+ PHYSFS_uint8 extra[4] = { 0, 0, 0, 0 };
PHYSFS_sint32 i = 0;
PHYSFS_sint64 filelen;
PHYSFS_sint64 filepos;