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

Nick Wellnhofer <[email protected]>
Newsgroups gmane.comp.gnome.lib.xml.general
Message-ID <[email protected]>
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?

Nick
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.