I think this will fix the issue. Let me know what is the correct way to access the output content with older libxml2:
memcpy(buffer, (char *)xmlBufferContent(output_buf->conv), output_buf->conv->use); or memcpy(buffer, (char *)output_buf->conv->content, output_buf->conv->use); Thanks you Breno On Thu, Jun 6, 2013 at 5:39 PM, Callum Gibson <callum_r_gib...@yahoo.com.au>wrote: > On 06Jun13 09:10, Breno Silva wrote: > }Hello guys thank you for your attention. Let me share with you the code: > } > https://github.com/SpiderLabs/ModSecurity/blob/remotes/trunk/apache2/msc_crypt.c > } > }Daniel, i think that would be the problem... there is something i'm > missing > }or doing wrong between the time i change the tree and start accessing the > }output buffer. > > Based on Daniel's comment, I'd say you need to add a call to > xmlOutputBufferFlush(output_buf) at line 1075, after you've written to it > and before you try to use it. > > C > > -- > > Callum Gibson @ home > > _______________________________________________ > xml mailing list, project page http://xmlsoft.org/ > xml@gnome.org > https://mail.gnome.org/mailman/listinfo/xml >
_______________________________________________ xml mailing list, project page http://xmlsoft.org/ xml@gnome.org https://mail.gnome.org/mailman/listinfo/xml