File php-5.3.3-CVE-2011-1467.patch of Package php5

http://svn.php.net/viewvc/?view=revision&revision=306154
--- ext/intl/formatter/formatter_attr.c	2010/12/10 00:37:31	306153
+++ ext/intl/formatter/formatter_attr.c	2010/12/10 00:47:51	306154
@@ -311,6 +311,11 @@
 
 		RETURN_FALSE;
 	}
+	
+	if (symbol >= UNUM_FORMAT_SYMBOL_COUNT || symbol < 0) {
+		intl_error_set( NULL, U_ILLEGAL_ARGUMENT_ERROR,	"numfmt_set_symbol: invalid symbol value", 0 TSRMLS_CC );
+		RETURN_FALSE;
+	}
 
 	/* Fetch the object. */
 	FORMATTER_METHOD_FETCH_OBJECT;

openSUSE Build Service is sponsored by