From: Stanislav Malyshev Date: Wed, 6 Jun 2007 18:15:41 +0000 (+0000) Subject: fix the chunks fix X-Git-Tag: php-5.2.4RC1~403 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d114d0b0c887fa6343489f7eb88875f75abc1a13;p=php fix the chunks fix --- diff --git a/ext/standard/string.c b/ext/standard/string.c index 161f7e51d5..d22e85924d 100644 --- a/ext/standard/string.c +++ b/ext/standard/string.c @@ -1969,7 +1969,7 @@ static char *php_chunk_split(char *src, int srclen, char *end, int endlen, int c return NULL; } out_len = chunks + 1; - if(out_len > INT_MAX/endlen) { + if(endlen !=0 && out_len > INT_MAX/endlen) { return NULL; } out_len *= endlen;