sunny created XERCESC-2013:
------------------------------

             Summary: 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


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]

Reply via email to