OSSP CVS Repository

ossp - Difference in ossp-pkg/l2/l2_ut_pcre.c versions 1.7 and 1.8
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/l2/l2_ut_pcre.c 1.7 -> 1.8

--- l2_ut_pcre.c 2003/01/06 11:41:52     1.7
+++ l2_ut_pcre.c 2005/10/03 08:05:55     1.8
@@ -674,6 +674,10 @@
 
         while ((cd->ctypes[*p] & ctype_digit) != 0)
                 min = min * 10 + *p++ - '0';
+        if (min < 0 || min > 65535) {
+            *errorptr = ERR5;
+            return p;
+        }
 
         if (*p == '}')
                 max = min;
@@ -682,6 +686,10 @@
                         max = 0;
                         while ((cd->ctypes[*p] & ctype_digit) != 0)
                                 max = max * 10 + *p++ - '0';
+                        if (max < 0 || max > 65535) {
+                            *errorptr = ERR5;
+                            return p;
+                        }
                         if (max < min) {
                                 *errorptr = ERR4;
                                 return p;

CVSTrac 2.0.1