reserve space for quoted characters

fixes buffer overrun bug #8694
This commit is contained in:
David Croft 2001-01-14 05:37:33 +00:00
parent c814b08536
commit 00db616ac4

View file

@ -300,6 +300,7 @@ php_date(INTERNAL_FUNCTION_PARAMETERS, int gm)
if(i < (*format)->value.str.len-1) { if(i < (*format)->value.str.len-1) {
i++; i++;
} }
size ++;
break; break;
case 'L': /* boolean for leap year */ case 'L': /* boolean for leap year */
case 'w': /* day of the week, numeric */ case 'w': /* day of the week, numeric */