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 "George Cristian Bina (JIRA)" <xe...@xml.apache.org> on 2008/08/28 15:41:44 UTC
[jira] Created: (XERCESJ-1326) StackOverflowException when parsing
against a schema with a pattern
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
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
[jira] Resolved: (XERCESJ-1326) StackOverflowException when parsing
against a schema with a pattern
Posted by "Khaled Noaman (JIRA)" <xe...@xml.apache.org>.
[ 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
[jira] Assigned: (XERCESJ-1326) StackOverflowException when parsing
against a schema with a pattern
Posted by "Michael Glavassevich (JIRA)" <xe...@xml.apache.org>.
[ https://issues.apache.org/jira/browse/XERCESJ-1326?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Glavassevich reassigned XERCESJ-1326:
---------------------------------------------
Assignee: Michael Glavassevich
> 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: Michael Glavassevich
>
> 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
[jira] Assigned: (XERCESJ-1326) StackOverflowException when parsing
against a schema with a pattern
Posted by "Michael Glavassevich (JIRA)" <xe...@xml.apache.org>.
[ https://issues.apache.org/jira/browse/XERCESJ-1326?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Glavassevich reassigned XERCESJ-1326:
---------------------------------------------
Assignee: Khaled Noaman (was: Michael Glavassevich)
> 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
[jira] Commented: (XERCESJ-1326) StackOverflowException when
parsing against a schema with a pattern
Posted by "Michael Glavassevich (JIRA)" <xe...@xml.apache.org>.
[ 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