On Mon, Oct 17, 2005 at 01:29:42PM +0200, James Eggleston wrote:
> Hi everyone,
> 
> Just to follow up my post from last month (I've been on holiday!) regarding a 
> problem with the xmlTextWriterWriteFormatElement call causing a seg fault 
> when  writing strings longer than 8191 characters... 
> 
> * the code provided was just an example to highlight the problem with 8192 
> bytes - the real code needs to handle longer strings and tidies up after 
> itself
> * the code provided by Alfred Mickautsch worked fine on my machine... so no 
> problem with the vsnprintf() or glibc (probably!)
> * passing 8191 or less bytes worked fine - however the strings being written 
> could be any size, so our code has to be able to handle longer... 
> 
> In the end, I altered our code to split any length string up into chunks of a 
> suitable length before saving to disk and reconstitute the original string on 
> reloading. Not ideal, but it worked. 
> 
> Many thanks to all those who offered help and spent time investigating the 
> problem... sorry I wasn't able to add anything constructive to the cause. 

  Hum ... I'm unclear, I can't remember clearly ? Did this ended up being
a bug in libxml2 ? Was that bug fixed ? If yes and no then this must be
bugzilla'ed so hopefully this get fixed.

Daniel

-- 
Daniel Veillard      | Red Hat Desktop team http://redhat.com/
[EMAIL PROTECTED]  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
[email protected]
http://mail.gnome.org/mailman/listinfo/xml

Reply via email to