[
https://issues.apache.org/jira/browse/XERCESC-2013?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Alberto Massari closed XERCESC-2013.
------------------------------------
Resolution: Cannot Reproduce
Assignee: Alberto Massari
I couldn't reproduce it with Xerces 3.1 on Windows: I have modified the
personal.xsd that ships with the Xerces samples to define the 'email' field as
a simple type similar to your case (I just added the @ and the . character to
the allowed characters)
<xs:simpleType name="StringSafeType">
<xs:restriction base="xs:string">
<xs:pattern value="([a-zA-Z0-9@\._\-])*"/>
<xs:whiteSpace value="collapse"/>
</xs:restriction>
</xs:simpleType>
<xs:element name="email" type='StringSafeType'/>
Then I invoked
saxprint -n -s -f -v=always samples\data\personal-schema.xml
and I didn't see any segmentation fault.
Can you try testing your schema with Xerces 3.1?
> Xerces SAX parser gives segmentation fault, while parsing message
> -----------------------------------------------------------------
>
> Key: XERCESC-2013
> URL: https://issues.apache.org/jira/browse/XERCESC-2013
> Project: Xerces-C++
> Issue Type: Bug
> Components: SAX/SAX2, Validating Parser (XML Schema)
> Affects Versions: 2.8.0
> Environment: Linux
> Reporter: sunny
> Assignee: Alberto Massari
> Labels: patch, performance
>
> 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_\-]){1,100000}"/>, then it works fine but consumes lot of
> memory and CPU.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]