cvs: pecl /zip zip_stream.c

From: Date: Mon, 13 Mar 2006 01:49:53 +0000
Subject: cvs: pecl /zip zip_stream.c
Groups: php.pecl.cvs 
Request: Send a blank email to pecl-cvs+get-5446@lists.php.net to get a copy of this message
pajoye Mon Mar 13 01:49:53 2006 UTC Modified files: /pecl/zip zip_stream.c Log: - return NULL if we found no fragment, no need to go further the URI is incomplete anyway http://cvs.php.net/viewcvs.cgi/pecl/zip/zip_stream.c?r1=1.4&r2=1.5&diff_format=u Index: pecl/zip/zip_stream.c diff -u pecl/zip/zip_stream.c:1.4 pecl/zip/zip_stream.c:1.5 --- pecl/zip/zip_stream.c:1.4 Sun Mar 12 14:15:13 2006 +++ pecl/zip/zip_stream.c Mon Mar 13 01:49:53 2006 @@ -1,4 +1,4 @@ -/* $Id: zip_stream.c,v 1.4 2006/03/12 14:15:13 pajoye Exp $ */ +/* $Id: zip_stream.c,v 1.5 2006/03/13 01:49:53 pajoye Exp $ */ #ifdef HAVE_CONFIG_H # include "config.h" #endif @@ -175,6 +175,9 @@ fragment_len = strlen(fragment); + if (fragment_len < 1) { + return NULL; + } path_len = strlen(path); memcpy(file_dirname, path, path_len - fragment_len);

« previous php.pecl.cvs (#5446) next »