xerces-j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Khaled Noaman (JIRA)" <xerces-j-...@xml.apache.org>
Subject [jira] Resolved: (XERCESJ-1326) StackOverflowException when parsing against a schema with a pattern
Date Wed, 19 May 2010 16:23:53 GMT

     [ https://issues.apache.org/jira/browse/XERCESJ-1326?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Khaled Noaman resolved XERCESJ-1326.
------------------------------------

    Fix Version/s: 2.10.0
       Resolution: Fixed

I have checked in a fix for the problem.

> 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
>             Fix For: 2.10.0
>
>
> 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


Mime
View raw message