Re: [xml] Patch suggestion for "fixing" 10 MB limit when using xmlNewTextWriterDoc

On 29/11/2017 22:14, Stian Hvatum wrote:
I am one of those who have been bit by the 10 MB limit when building an XML using xmlNewTextWriterDoc as constructor the xmlTextWriter.

I already mentioned on this list that, personally, I'd completely remove the text node size limit. It ostensibly protects against DoS attacks, but there are countless other ways to make libxml2 consume even more resources than feeding it large text nodes.

Instead of adding even more kludges, I'd prefer a work-around that doesn't require additional public functions. Maybe you can simply call xmlNewTextWriterPushParser with a custom parser context instead?


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]