SOURCES: php-substr_compare.patch (NEW) - bug 37394 fixed

arekm arekm at pld-linux.org
Thu Jun 22 15:07:39 CEST 2006


Author: arekm                        Date: Thu Jun 22 13:07:39 2006 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- bug 37394 fixed

---- Files affected:
SOURCES:
   php-substr_compare.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/php-substr_compare.patch
diff -u /dev/null SOURCES/php-substr_compare.patch:1.1
--- /dev/null	Thu Jun 22 15:07:39 2006
+++ SOURCES/php-substr_compare.patch	Thu Jun 22 15:07:34 2006
@@ -0,0 +1,11 @@
+--- php-src.org/ext/standard/string.c	2006/04/25 12:48:41	1.445.2.14
++++ php-src/ext/standard/string.c	2006/05/10 13:07:15	1.445.2.14.2.1
+@@ -4894,7 +4894,7 @@
+ 		offset = (offset < 0) ? 0 : offset;
+ 	}
+ 
+-	if ((offset + len) >= s1_len) {
++	if ((offset + len) > s1_len) {
+ 		php_error_docref(NULL TSRMLS_CC, E_WARNING, "The start position cannot exceed initial string length");
+ 		RETURN_FALSE;
+ 	}
================================================================


More information about the pld-cvs-commit mailing list