1
0
mirror of https://github.com/php/php-src.git synced 2026-04-11 18:13:00 +02:00

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) {
i++;
}
size ++;
break;
case 'L': /* boolean for leap year */
case 'w': /* day of the week, numeric */