You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by "sunny (JIRA)" <xe...@xml.apache.org> on 2013/04/25 12:56:15 UTC

[jira] [Created] (XERCESC-2013) Xerces SAX parser gives segmentation fault, while parsing message

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: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org