[ http://issues.apache.org/jira/browse/XERCESC-1051?page=history ]

Alberto Massari reassigned XERCESC-1051:
----------------------------------------

    Assign To: Alberto Massari  (was: Xerces-C Developers Mailing List)

> Crash when maxOccurs >= 200000
> ------------------------------
>
>          Key: XERCESC-1051
>          URL: http://issues.apache.org/jira/browse/XERCESC-1051
>      Project: Xerces-C++
>         Type: Bug
>   Components: Validating Parser (Schema) (Xerces 1.5 or up only)
>     Versions: 2.3.0
>  Environment: Operating System: Windows NT/2K
> Platform: PC
>     Reporter: Frank Rast
>     Assignee: Alberto Massari

>
> 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.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to