Issue Details (XML | Word | Printable)

Key: XERCESC-1051
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Alberto Massari
Reporter: Frank Rast
Votes: 2
Watchers: 3
Operations

If you were logged in you would be able to see more operations.
Xerces-C++

Crash when maxOccurs >= 200000

Created: 14/Nov/03 06:32 PM   Updated: 10/Jul/09 01:13 PM
Return to search
Component/s: Validating Parser (XML Schema)
Affects Version/s: 2.3.0
Fix Version/s: 3.0.0

Time Tracking:
Not Specified

Environment:
Operating System: Windows NT/2K
Platform: PC

Bugzilla Id: 24703
Resolution Date: 13/Jul/08 08:02 PM


 Description  « Hide
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;
}

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Serge Knystautas made changes - 09/Apr/04 04:46 PM
Field Original Value New Value
issue.field.bugzillaimportkey 24703 18927
Alberto Massari made changes - 02/Nov/04 02:02 PM
Priority Major [ 3 ]
Alberto Massari made changes - 08/Apr/05 11:10 PM
Assignee Xerces-C Developers Mailing List [ xerces-c-dev@xml.apache.org ] Alberto Massari [ amassari ]
Boris Kolpackov made changes - 13/May/08 02:46 PM
Fix Version/s 3.0.0 [ 12312833 ]
Alberto Massari made changes - 13/Jul/08 08:02 PM
Resolution Fixed [ 1 ]
Status Open [ 1 ] Resolved [ 5 ]