[Devel] [ openser-Bugs-1653286 ] tm: static path_vec buffer get's assigned to shm-pointer

SourceForge.net noreply at sourceforge.net
Tue Feb 6 14:20:25 CET 2007


Bugs item #1653286, was opened at 2007-02-06 14:20
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=1653286&group_id=139143

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: modules
Group: ver devel
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Marcus Hunger (marcushunger)
Assigned to: Nobody/Anonymous (nobody)
Summary: tm: static path_vec buffer get's assigned to shm-pointer

Initial Comment:
t_forward_nonack acquires a pointer to a branch's path vector using get_branch and passes it to add_uac. get_branch returns a pointer to a static buffer. add_uac assigns this pointer to (struct sip_msg) msg->path_vec, which later get's freed using shm_free. 
the attached patch fixes this by making a copy of the path vector stored in shared memory before assigning it.


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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=1653286&group_id=139143



More information about the Devel mailing list