exificient icon indicating copy to clipboard operation
exificient copied to clipboard

Stack overflow resulting from large maxOccurs values

Open jadams-tresys opened this issue 2 years ago • 8 comments

I am aware of this old ticket on Sourceforge: https://sourceforge.net/p/exificient/bugs/31/

You're suggested work around of setting the maxOccurs to be unbounded will not work for our application as the schemas we are creating are used in a secure environment and need to be as restrictive as possible. Also even significant increases to the stack size did not prevent the overflow from occurring.

From an outsider's perspective it would seem that a relatively easy fix for this would be to treat maxOccurs values above some threshold (5 or 10?) as unbounded internally.

An example of one of our schemas that triggers this error can be found here: https://github.com/DFDLSchemas/NITF It has an element with a maxOccurs="999".

jadams-tresys avatar Nov 15 '22 12:11 jadams-tresys