Issue with commoncpp2, zrtp, linphone, and latest kopete

David Sugar dyfet at gnutelephony.org
Wed Jun 27 10:20:52 UTC 2012


This bug was identified this morning in Fedora.  It effects linphone and
the latest Kopete built with ortp, as both now make use GNU ZRTP in
Fedora.  It surely applies to Debian as well (and arch, etc...)...

This is the relevant interum patch, for ucommon 5.2.2:

diff --git i/commoncpp/address.cpp w/commoncpp/address.cpp
index 24eeb2b..967d154 100644
--- i/commoncpp/address.cpp
+++ w/commoncpp/address.cpp
@@ -360,7 +360,7 @@ void IPV4Address::setAddress(const char *host)
             if(ipaddr)
                 delete[] ipaddr;
             ipaddr = new struct in_addr[1];
-            memset((void *)&ipaddr[0], 0, sizeof(ipaddr));
+            memset((void *)&ipaddr[0], 0, sizeof(struct in_addr));
             return;
         }

@@ -498,7 +498,7 @@ IPV6Address::IPV6Address(const IPV6Validator
*_validator)
     : validator(_validator), hostname(NULL) {
     addr_count = 1;
     ipaddr = new struct in6_addr[1];
-    memcpy(ipaddr, &in6addr_any, sizeof(in6_addr));
+    memcpy(ipaddr, &in6addr_any, sizeof(struct in6_addr));
 }

 IPV6Address::IPV6Address(const char *address, const IPV6Validator
*_validator) :
@@ -716,7 +716,7 @@ void IPV6Address::setAddress(const char *host)
             if(ipaddr)
                 delete[] ipaddr;
             ipaddr = new struct in6_addr[1];
-            memset((void *)&ipaddr[0], 0, sizeof(ipaddr));
+            memset((void *)&ipaddr[0], 0, sizeof(struct in6_addr));
             return;
         }

@@ -796,7 +796,7 @@ void IPV6Address::setAddress(const char *host)
             if(ipaddr)
                 delete[] ipaddr;
             ipaddr = new struct in6_addr[1];
-            memset((void *)&ipaddr[0], 0, sizeof(ipaddr));
+            memset((void *)&ipaddr[0], 0, sizeof(struct in6_addr));
             return;
         }

This will be incorporated into ucommon 5.2.3 & 5.4.2 probably later tonight.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dyfet.vcf
Type: text/x-vcard
Size: 177 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-voip-maintainers/attachments/20120627/30030907/attachment.vcf>


More information about the Pkg-voip-maintainers mailing list