pidgin/android/libpurple

Parents 139bae0c1519
Children c45bf1739fea
Almost certainly not an issue, but bounds check a strcpy in stun.c (EFF)
--- a/libpurple/stun.c Thu Aug 11 16:10:33 2011 +0000
+++ b/libpurple/stun.c Thu Aug 11 16:13:15 2011 +0000
@@ -226,7 +226,7 @@
memcpy(&in.s_addr, tmp + 4, 4);
ip = inet_ntoa(in);
if(ip)
- strcpy(nattype.publicip, ip);
+ g_strlcpy(nattype.publicip, ip, sizeof(nattype.publicip));
}
tmp += ntohs(attrib->len);