Bugs item #1511440, was opened at 2006-06-23 19:02
Message generated for change (Comment added) made by kaiv
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: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Michal Matyska (michal_matyska)
>Assigned to: Kai Vehmanen (kaiv)
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

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

>Comment By: Kai Vehmanen (kaiv)
Date: 2006-07-27 16:16

Message:
Logged In: YES 
user_id=25486

Fix commited to sofsip-cli darcs tree on 2006-07-27. Will be
in part of the next 0.11 release of sofsip-cli.

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

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

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Sofia-sip-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel

Reply via email to