Re: [xml] Disable external entity processing

2013-03-05 Thread Breno Silva
Hello, I'm parsing XML data using simple API : xmlCreatePushParserCtxt(NULL, NULL, buf, size, "file.xml"); xmlParseChunk(ctx, buf, size, 0); I would like to get some direction of how can i disable external entities to be processed like: http://externalhost/ext.xml";> %external; %a; %b; ]> Tha

[xml] xmlOutputBufferGetSize and xmlOutputBufferGetContent

2013-06-05 Thread Breno Silva
Hello guys, I have a feature where i get an element using xmlGetProp then i change it and re-set using xmlSetProp. Using the old libxml2 (2.7.6) i could copy the right http response body to a local buffer just accessing the output->buffer->content memcpy(buf, output_buf->buffer->content, output_

Re: [xml] xmlOutputBufferGetSize and xmlOutputBufferGetContent

2013-06-05 Thread Breno Silva
Any idea ? Thanks Breno On Wed, Jun 5, 2013 at 3:20 PM, Breno Silva wrote: > Hello guys, > > I have a feature where i get an element using xmlGetProp then i change it > and re-set using xmlSetProp. > > Using the old libxml2 (2.7.6) i could copy the right http response body to >

Re: [xml] xmlOutputBufferGetSize and xmlOutputBufferGetContent

2013-06-06 Thread Breno Silva
l Veillard wrote: > On Thu, Jun 06, 2013 at 02:51:19PM +1000, Callum Gibson wrote: > > On 06Jun13 01:38, Breno Silva wrote: > > }> I changed it to (using libxml2 2.9.0): > > }> > > }> memcpy(buf, xmlOutputBufferGetContent(output_buf), > > }> xmlOutputBuff

Re: [xml] xmlOutputBufferGetSize and xmlOutputBufferGetContent

2013-06-06 Thread Breno Silva
>use); Thanks you Breno On Thu, Jun 6, 2013 at 5:39 PM, Callum Gibson 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 >