Please find enclosed a patch for bug 17415.
Regards,
Khaled
---
D:\cvswork\xml-xerces\java\src\org\apache\xerces\impl\xpath\regex\message.properties
2003-03-24 20:34:13.000000000 -0500
+++ message.properties 2003-03-24 20:43:45.000000000 -0500
@@ -36,3 +36,4 @@
parser.quantifier.2=Invalid quantifier. Invalid quantity or a '}' is missing.
parser.quantifier.3=Invalid quantifier. A digit or '}' is expected.
parser.quantifier.4=Invalid quantifier. A min quantity must be <= a max quantity.
+parser.quantifier.5=Invalid quantifier. A quantity value overflow.
--- D:\cvswork\xml-xerces\java\src\org\apache\xerces\impl\xpath\regex\RegexParser.java
2003-03-24 20:32:44.000000000 -0500
+++ RegexParser.java 2003-03-25 09:25:19.000000000 -0500
@@ -653,6 +653,8 @@
while (off < this.regexlen
&& (ch = this.regex.charAt(off++)) >= '0' && ch <= '9') {
min = min*10 +ch-'0';
+ if (min < 0)
+ throw ex("parser.quantifier.5", this.offset);
}
}
else {
@@ -672,6 +674,8 @@
&& (ch = this.regex.charAt(off++)) >= '0'
&& ch <= '9') {
max = max*10 +ch-'0';
+ if (max < 0)
+ throw ex("parser.quantifier.5", this.offset);
}
if (min > max)
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]