com php-src: fix condition: main/streams/plain_wrapper.c

From: Date: Thu, 19 Mar 2015 21:33:16 +0000
Subject: com php-src: fix condition: main/streams/plain_wrapper.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-85653@lists.php.net to get a copy of this message
Commit: 184793b5c1e7a9df67e542893b69bace5cd7a67c Author: Anatol Belski <ab@php.net> Thu, 19 Mar 2015 13:43:24 +0100 Parents: 9bcd64fd83487382e94199560cd809b152d03c97 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=184793b5c1e7a9df67e542893b69bace5cd7a67c Log: fix condition Changed paths: M main/streams/plain_wrapper.c Diff: diff --git a/main/streams/plain_wrapper.c b/main/streams/plain_wrapper.c index 6715d7f..ff4241b 100644 --- a/main/streams/plain_wrapper.c +++ b/main/streams/plain_wrapper.c @@ -1474,7 +1474,7 @@ not_relative_path: const char *exec_fname = exec_filename->val; size_t exec_fname_length = exec_filename->len; - while ((--exec_fname_length >= 0) && !IS_SLASH(exec_fname[exec_fname_length])); + while ((--exec_fname_length < SIZE_MAX) && !IS_SLASH(exec_fname[exec_fname_length])); if (exec_fname_length<=0) { /* no path */ pathbuf = estrdup(path);

« previous php.cvs (#85653) next »