File php-5.1.2-phpbug-36148.patch of Package php

--- ext/standard/pack.c	2006/01/01 13:09:55	1.60
+++ ext/standard/pack.c	2006/01/26 15:48:15	1.61
@@ -692,7 +692,9 @@
 							len = size * 2;
 						} 
 
-						len -= argb % 2;
+						if (argb > 0) {	
+							len -= argb % 2;
+						}
 
 						buf = emalloc(len + 1);
 
openSUSE Build Service is sponsored by