From d114d0b0c887fa6343489f7eb88875f75abc1a13 Mon Sep 17 00:00:00 2001 From: Stanislav Malyshev Date: Wed, 6 Jun 2007 18:15:41 +0000 Subject: [PATCH] fix the chunks fix --- ext/standard/string.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.50.1