# HG changeset patch # User Ethan Blanton # Date 1313079195 0 # Node ID 0d94c49f9545cdc7e80dfc0a0fdaf047c1a1427d # Parent de1a7814023f08b98d4d1cd37084c986d93f754a Almost certainly not an issue, but bounds check a strcpy in stun.c (EFF) diff -r de1a7814023f -r 0d94c49f9545 libpurple/stun.c --- 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);