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 "Frank Rast (JIRA)" <xe...@xml.apache.org> on 2009/07/10 15:15:15 UTC
[jira] Commented: (XERCESC-1051) Crash when maxOccurs >= 200000
[ https://issues.apache.org/jira/browse/XERCESC-1051?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12729629#action_12729629 ]
Frank Rast commented on XERCESC-1051:
-------------------------------------
Now it does not crash but the performance could be better. Large maxOccurs stil slow down validation. Is there a way to get better performance in this case?
> Crash when maxOccurs >= 200000
> ------------------------------
>
> Key: XERCESC-1051
> URL: https://issues.apache.org/jira/browse/XERCESC-1051
> Project: Xerces-C++
> Issue Type: Bug
> Components: Validating Parser (XML Schema)
> Affects Versions: 2.3.0
> Environment: Operating System: Windows NT/2K
> Platform: PC
> Reporter: Frank Rast
> Assignee: Alberto Massari
> Fix For: 3.0.0
>
>
> Parser crashes in ContentSpecNode.hpp: ContentSpecNode::~ContentSpecNode().
> Steps to reproduce:
> validate a xml file against a schema with an element having a maxOccurs >=
> 200000.
> Assumed cause:
> Stack overfow
> Makeshift resolution:
> Set the repeat count to unbounded(-1), when maxOccurs > 500:
> inline void ContentSpecNode::setMaxOccurs(int max)
> {
> if(max > 500)
> max = -1;
> fMaxOccurs = max;
> }
--
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: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org