Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Cannot Reproduce
-
2.8.0
-
None
-
Linux
Description
I'm validating an xml message with an xsd which contains the following element.
<xs:simpleType name="StringSafeType">
<xs:restriction base ="xs:string">
<xs:pattern value="([a-zA-Z0-9_\-])*"/>
<xs:whiteSpace value="collapse"/>
</xs:restriction>
</xs:simpleType>
I'm using sax parser for validation. For validating the data present in the above element xerces parser gives segmentation fault. If i remove '*' from pattern it is working fine.
I replaced "<xs:pattern value="([a-zA-Z0-9_\-])*"/>" with <xs:pattern value="([a-zA-Z0-9_\-])
"/>, then it works fine but consumes lot of memory and CPU.