You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by bu...@apache.org on 2003/02/26 06:57:47 UTC

DO NOT REPLY [Bug 17415] New: - Regexes with large min/max not handled correctly

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17415>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17415

Regexes with large min/max not handled correctly

           Summary: Regexes with large min/max not handled correctly
           Product: Xerces2-J
           Version: 2.3.0
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: XML Schema datatypes
        AssignedTo: xerces-j-dev@xml.apache.org
        ReportedBy: jjc@jclark.com


Xerces incorrectly accepts the following document

<test xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:noNamespaceSchemaLocation='test.xsd'>x</test>

as being valid wrt to the following schema

<xs:schema xmlns:xs='http://www.w3.org/2001/XMLSchema'>
 <xs:element name="test">
  <xs:simpleType>
   <xs:restriction base="xs:string">
     <xs:pattern value="x{2147483648}"/>
   </xs:restriction>
  </xs:simpleType>
 </xs:element>
</xs:schema>

(the code doesn't address integer overflow at all)

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org