From: David Croft Date: Sun, 14 Jan 2001 05:37:33 +0000 (+0000) Subject: reserve space for quoted characters X-Git-Tag: php-4.0.5RC1~591 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=00db616ac4a7b80f6da9dd41c2e47266f76e6065;p=php reserve space for quoted characters fixes buffer overrun bug #8694 --- diff --git a/ext/standard/datetime.c b/ext/standard/datetime.c index 609df5d558..dda3cde0e2 100644 --- a/ext/standard/datetime.c +++ b/ext/standard/datetime.c @@ -300,6 +300,7 @@ php_date(INTERNAL_FUNCTION_PARAMETERS, int gm) if(i < (*format)->value.str.len-1) { i++; } + size ++; break; case 'L': /* boolean for leap year */ case 'w': /* day of the week, numeric */