diff options
Diffstat (limited to 'minzip')
-rw-r--r-- | minzip/Zip.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/minzip/Zip.c b/minzip/Zip.c index 40712e03a..c6272509f 100644 --- a/minzip/Zip.c +++ b/minzip/Zip.c @@ -427,6 +427,8 @@ int mzOpenZipArchive(unsigned char* addr, size_t length, ZipArchive* pArchive) { int err; + memset(pArchive, 0, sizeof(ZipArchive)); + if (length < ENDHDR) { err = -1; LOGV("File '%s' too small to be zip (%zd)\n", fileName, map.length); |