sesser Wed Nov 12 17:34:59 2003 EDT
Modified files:
/php-src/main rfc1867.c
Log:
Fix odd increments to repair the boundary checks.
Index: php-src/main/rfc1867.c
diff -u php-src/main/rfc1867.c:1.145 php-src/main/rfc1867.c:1.146
--- php-src/main/rfc1867.c:1.145 Wed Nov 5 18:27:41 2003
+++ php-src/main/rfc1867.c Wed Nov 12 17:34:58 2003
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: rfc1867.c,v 1.145 2003/11/05 23:27:41 hirokawa Exp $ */
+/* $Id: rfc1867.c,v 1.146 2003/11/12 22:34:58 sesser Exp $ */
/*
* This product includes software developed by the Apache Group
@@ -73,6 +73,10 @@
void php_mb_gpc_realloc_buffer(char ***pval_list, int **plen_list, int *num_vars_max,
int inc TSRMLS_DC)
{
+ /* allow only even increments */
+ if (inc & 1) {
+ inc++;
+ }
(*num_vars_max) += inc;
*pval_list = (char **)erealloc(*pval_list, (*num_vars_max+2)*sizeof(char *));
*plen_list = (int *)erealloc(*plen_list, (*num_vars_max+2)*sizeof(int));
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php