Bugs item #1511440, was opened at 2006-06-23 18:02
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=756076&aid=1511440&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
Submitted By: Michal Matyska (michal_matyska)
Assigned to: Nobody/Anonymous (nobody)
Summary: sofsip-cli core dumps processing "fake" nua_i_notify

Initial Comment:
sofsip-cli-0.10.1:

If there is no NOTIFY received after SUBSCRIBE, the
sofia sip core triggers "fake" nua_i_notify "Early
Subcsription Timeouts" (after 32 seconds). The client
is not able to process the event due to the sip
parameter dereferenced before assert, as the parameter
value is NULL in this case.

void ssc_i_notify(nua_t *nua, ssc_t *ssc,
          nua_handle_t *nh, ssc_oper_t *op, sip_t const
*sip,
          tagi_t tags[])
{
  sip_from_t const *from = sip->sip_from;
  sip_event_t const *event = sip->sip_event;
  sip_content_type_t const *content_type =
sip->sip_content_type;
  sip_payload_t const *payload = sip->sip_payload;

  assert(sip);

  if (op)
....


To prevent the seg. fault sip parameter should be
checked before (like in the following example):
void ssc_i_notify(nua_t *nua, ssc_t *ssc,
          nua_handle_t *nh, ssc_oper_t *op, sip_t const
*sip,
          tagi_t tags[])
{
  if (!sip) {
    printf("%s: NOTIFY
sip=%p,nh=%p,op=%p\n",ssc->ssc_name, sip, nh, op);
    return;
  }
  sip_from_t const *from = sip->sip_from;
  sip_event_t const *event = sip->sip_event;
  sip_content_type_t const *content_type =
sip->sip_content_type;
  sip_payload_t const *payload = sip->sip_payload;

  if (op)
....

Regards,
Michal Matyska

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=756076&aid=1511440&group_id=143636

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Sofia-sip-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel

Reply via email to