You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by "Michael Glavassevich (JIRA)" <xe...@xml.apache.org> on 2008/11/03 01:28:46 UTC

[jira] Commented: (XERCESJ-1326) StackOverflowException when parsing against a schema with a pattern

    [ https://issues.apache.org/jira/browse/XERCESJ-1326?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12644635#action_12644635 ] 

Michael Glavassevich commented on XERCESJ-1326:
-----------------------------------------------

"(a?)+" which I believe is equivalent to "(a|)+" also results in a StackOverflowError.

> StackOverflowException when parsing against a schema with a pattern
> -------------------------------------------------------------------
>
>                 Key: XERCESJ-1326
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-1326
>             Project: Xerces2-J
>          Issue Type: Bug
>          Components: XML Schema 1.0 Datatypes
>    Affects Versions: 2.9.1
>         Environment: All
>            Reporter: George Cristian Bina
>            Assignee: Khaled Noaman
>
> The following document when parsed against the schema below generates a stack overflow:
> testPattern.xml
> <?xml version="1.0" encoding="UTF-8"?>
> <root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>  xsi:noNamespaceSchemaLocation="testPattern.xsd">ab</root>
> testPattern.xsd
> <?xml version="1.0" encoding="UTF-8"?>
> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
>     <xs:element name="root">
>         <xs:simpleType>
>             <xs:restriction base="xs:string">
>                 <xs:pattern value="(a|)+"/>
>             </xs:restriction>
>         </xs:simpleType>
>     </xs:element>
> </xs:schema>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org