Bugs item #3510029, was opened at 2012-03-22 03:14 Message generated for change (Tracker Item Submitted) made by You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=756076&aid=3510029&group_id=143636
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: https://www.google.com/accounts () Assigned to: Nobody/Anonymous (nobody) Summary: sofia sip crash on android Initial Comment: When the TO sip header or FROM sip header starts with a '<', the code crash on android. After tracking the problem it seems that there is an error in sip_basic.c. In the method "sip_name_addr" you can see the variable is assigned to an empty string when the sip header starts with a '<'. if (s[n] == '<') { /* OK, we got a display name */ display = s; s += n + 1; /* NUL terminate display name */ while (n > 0 && IS_LWS(display[n - 1])) n--; if (n > 0) display[n] = '\0'; else display=""; Since the address of display is assigned to *return_display, this gives problems on Android. If we change display="" with display=NULL the code doesn't crashed. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=756076&aid=3510029&group_id=143636 ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ Sofia-sip-devel mailing list Sofia-sip-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel