libextractor

GNU libextractor
Log | Files | Refs | Submodules | README | LICENSE

commit da53ff715e5687bc08d995d836af5dcfcdc43164
parent 061e831ca730338c834ae05567a3422771a5d25e
Author: Christian Grothoff <christian@grothoff.org>
Date:   Sun, 13 Jun 2010 14:48:23 +0000

null check

Diffstat:
Msrc/common/unzip.c | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/common/unzip.c b/src/common/unzip.c @@ -661,6 +661,11 @@ EXTRACTOR_common_unzip_open2 (const char *path, s=(unz_s*)ALLOC(sizeof(unz_s)); + if (s == NULL) + { + ZCLOSE(us.z_filefunc, us.filestream); + return NULL; + } *s=us; EXTRACTOR_common_unzip_go_to_first_file((EXTRACTOR_unzip_file)s); return (EXTRACTOR_unzip_file)s;