File php-5.3.5-CVE-2012-1172.patch of Package php5.512

http://svn.php.net/viewvc?view=revision&revision=321664
--- main/rfc1867.c	2012/01/01 23:51:21	321663
+++ main/rfc1867.c	2012/01/01 23:54:25	321664
@@ -942,6 +942,10 @@
 					}
 					tmp++;
 				}
+				/* Brackets should always be closed */
+				if(c != 0) {
+					skip_upload = 1;
+				}
 			}
 
 			total_bytes = cancel_upload = 0;