[Bug 192648] New: [PATCH] net/belle-sip 1.3.0_1 resolv bug causes crash when using net/linphone 3.7.0,1 [FBSD 10.0]

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Aug 14 07:12:50 UTC 2014


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=192648

            Bug ID: 192648
           Summary: [PATCH] net/belle-sip 1.3.0_1 resolv bug causes crash
                    when using net/linphone 3.7.0,1 [FBSD 10.0]
           Product: Ports Tree
           Version: Latest
          Hardware: Any
                OS: Any
            Status: Needs Triage
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: freebsd-ports-bugs at FreeBSD.org
          Reporter: freebsd at talk2dom.com

Created attachment 145767
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=145767&action=edit
patch for net/belle-sip 1.3.0_1: files/patch-src_dns.c

I built linphone, which required belle-sip, from ports.

When running linphone, going to menu "Options" -> "Preferences" opens a
"Settings" window. On the "Network settings" tab, check "Behind NAT / Firewall
(use STUN to resolve)". After this, type into the "Stun server:" text input
box. On the first key press linphone crashes.

It seems that linphone attempts to resolve the hostname in the text box after
every keypress. This in turn calls belle-sip's dns_resconf_loadfromresolv() in
src/dns.c:4304. The crash is at line 4309 "if ((error = res_ninit(&res))) {"
caused by res_ninit() being passed a pointer to a struct -that has not been
initialized-.

The fix is simply to insert the following before line 4309:

bzero(&res, sizeof(res));

(patch also attached for saving into net/belle-sip/files/)

Probably needs bouncing upstream.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list