[Kamailio-Devel] Out of pkg mem with own module

Schumann Sebastian Sebastian.Schumann at t-com.sk
Tue Nov 11 09:38:48 CET 2008


Thanks. Seems I need to find the problem somewhere else.

I will try to use the memory debuger.

Sebastian 

> -----Original Message-----
> From: Klaus Darilion [mailto:klaus.mailinglists at pernau.at] 
> Sent: Monday, 10. November 2008 10:23
> To: Schumann Sebastian
> Cc: devel at lists.kamailio.org
> Subject: Re: [Kamailio-Devel] Out of pkg mem with own module
> 
> Looks fine.
> 
> ...
> > memcpy(p, body_end.s, body_end.len);
> > p += body_end.len;
> > body.s = s;
> > body.len = (int)(p-s);
> > 
> > if(body.len > n) {
> 
> This can never happen.
> klaus
> 
> >     LM_ERR("Buffer size overflow for body\n");
> >     pkg_free(s);
> >     return -1;
> > }
> > ...
> > pkg_free(s);
> > [snip]
> > 
> > 
> > 
> ----------------------------------------------------------------------
> > --
> > 
> > _______________________________________________
> > Devel mailing list
> > Devel at lists.kamailio.org
> > http://lists.kamailio.org/cgi-bin/mailman/listinfo/devel
> 



More information about the Devel mailing list