Uploaded image for project: 'Xerces-C++'
  1. Xerces-C++
  2. XERCESC-2013

Xerces SAX parser gives segmentation fault, while parsing message

    Details

      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_\-])

      {1,100000}

      "/>, then it works fine but consumes lot of memory and CPU.

        Attachments

          Activity

            People

            • Assignee:
              amassari Alberto Massari
              Reporter:
              sndeep12@gmail.com sunny
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: