[OpenSIPS-Devel] [ opensips-Bugs-3493764 ] Rtpproxy null pointer dereference causes segfault
SourceForge.net
noreply at sourceforge.net
Sat Feb 25 07:44:20 CET 2012
Bugs item #3493764, was opened at 2012-02-24 22:26
Message generated for change (Comment added) made by dpacket
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=1086410&aid=3493764&group_id=232389
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: 1.7.x
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Dynamic Packet (dpacket)
Assigned to: Nobody/Anonymous (nobody)
Summary: Rtpproxy null pointer dereference causes segfault
Initial Comment:
When running rtpproxy in its default configuration and using a unix socket, server segfaults due to null pointer dereference if calling rtpproxy_offer() / rtpproxy_answer() with only 1 argument. This bug is probably also present in trunk, please apply patch there also.
Steps to reproduce:
1) run rtpproxy with default settings:
"rtpproxy -s unix:/var/run/rtpproxy/rtpproxy.sock -u rtpproxy rtpproxy -p /var/run/rtpproxy/rtpproxy.pid"
2) configure opensips to use rtpproxy on unix socket:
modparam("rtpproxy", "rtpproxy_sock", "unix:/var/run/rtpproxy/rtpproxy.sock")
3) call rtpproxy_offer("oc") from script on initial invite
4) segfault with no valid core produced
Patch description:
handle all possible cases properly
1) second argument w/ip passed to offer/answer (args->arg2)
2) no second argument, rtpproxy response contains ip (argv[1])
3) no ip in rtpproxy response (started using unix socket and no -l param)
must revert to default of proxy ip
----------------------------------------------------------------------
>Comment By: Dynamic Packet (dpacket)
Date: 2012-02-24 22:44
Message:
please note, patch is attached
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=1086410&aid=3493764&group_id=232389
More information about the Devel
mailing list