Bug in multipart creation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Just fixed this in the SVN trunk, see
https://trac.pjsip.org/repos/ticket/1151#comment:8. Thanks for the
report.

BR,
nanang


On Fri, Nov 19, 2010 at 9:06 PM, Dan Price <pricedl at zoomnet.net> wrote:
> I attempted to use the library to send an INVITE message with multipart content. ?I created the multipart container by calling pjsip_multipart_create with NULL for the ctype argument, indicating the default "multipart/mixed" should be used. ?Later when the print method is called, a crash occurs. ?It appears to be a problem with the way the linked list of content-type parameters is initialized.
>
> The following patch has resolved my problem:
>
>
> Index: sip_multipart.c
> ===================================================================
> --- sip_multipart.c ? ? (revision 3362)
> +++ sip_multipart.c ? ? (working copy)
> @@ -231,6 +231,8 @@
>
> ? ? ? ?body->content_type.type = STR_MULTIPART;
> ? ? ? ?body->content_type.subtype = STR_MIXED;
> + ? ? ? body->content_type.param.next = &body->content_type.param;
> + ? ? ? body->content_type.param.prev = &body->content_type.param;
> ? ? }
>
> ? ? /* multipart data */
>
>
>
> _______________________________________________
> Visit our blog: http://blog.pjsip.org
>
> pjsip mailing list
> pjsip at lists.pjsip.org
> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>



[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux