ion-c
ion-c copied to clipboard
Ion Writer `max_container_depth` Not Honored
When investigating https://github.com/partiql/partiql-lang-rust/issues/43, I noticed a couple of things. the max_container_depth option:
https://github.com/amzn/ion-c/blob/d63172996beb043cc06f8a626517eac40ea2699d/ionc/include/ionc/ion_writer.h#L66-L69
Is basically never used. Furthermore, the default of 10 can easily be overrun, and probably should be something a bit higher (I'd recommend making it 1024, as the cost is the container stack).