cvs: php4(PHP_4_2_0) /ext/standard reg.c
| From: | Andrei Zmievski | Date: | Mon, 17 Jun 2002 15:11:40 +0000 |
| Subject: | cvs: php4(PHP_4_2_0) /ext/standard reg.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-12388@lists.php.net to get a copy of this message | ||
andrei Mon Jun 17 11:11:40 2002 EDT
Modified files: (Branch: PHP_4_2_0)
/php4/ext/standard reg.c
Log:
MFH
Index: php4/ext/standard/reg.c
diff -u php4/ext/standard/reg.c:1.58.2.1 php4/ext/standard/reg.c:1.58.2.2
--- php4/ext/standard/reg.c:1.58.2.1 Sun May 5 04:39:57 2002
+++ php4/ext/standard/reg.c Mon Jun 17 11:11:39 2002
@@ -17,7 +17,7 @@
| Jaakko Hyvätti <jaakko@hyvatti.iki.fi> |
+----------------------------------------------------------------------+
*/
-/* $Id: reg.c,v 1.58.2.1 2002/05/05 08:39:57 hirokawa Exp $ */
+/* $Id: reg.c,v 1.58.2.2 2002/06/17 15:11:39 andrei Exp $ */
#include <stdio.h>
#include "php.h"
@@ -341,6 +341,7 @@
while (*walk)
if ('\\' == *walk
&& '0' <= walk[1] && '9' >= walk[1]
+ && walk[1] - '0' <= re.re_nsub
&& subs[walk[1] - '0'].rm_so > -1
&& subs[walk[1] - '0'].rm_eo > -1) {
new_l += subs[walk[1] - '0'].rm_eo
@@ -368,6 +369,7 @@
while (*walk)
if ('\\' == *walk
&& '0' <= walk[1] && '9' >= walk[1]
+ && walk[1] - '0' <= re.re_nsub
&& subs[walk[1] - '0'].rm_so > -1
&& subs[walk[1] - '0'].rm_eo > -1
/* this next case shouldn't happen. it does. */