[Kamailio-Devel] Out of pkg mem with own module
Klaus Darilion
klaus.mailinglists at pernau.at
Mon Nov 10 10:22:58 CET 2008
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