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
No work has yet been logged on this issue.