Mercurial > pidgin.yaz
diff libpurple/protocols/msnp9/slplink.c @ 23059:79b4a8e0da77
MSN SLP fix
author | Stu Tomlinson <stu@nosnilmot.com> |
---|---|
date | Thu, 26 Jun 2008 19:04:52 +0000 |
parents | d04d24b1db9b |
children | 7eeb81cbbcae |
line wrap: on
line diff
--- a/libpurple/protocols/msnp9/slplink.c Thu Jun 26 09:14:31 2008 +0000 +++ b/libpurple/protocols/msnp9/slplink.c Thu Jun 26 19:04:52 2008 +0000 @@ -597,7 +597,7 @@ } else if (slpmsg->size) { - if (offset < 0 || (offset + len) > slpmsg->size) + if (G_MAXSIZE - len < offset || (offset + len) > slpmsg->size) { purple_debug_error("msn", "Oversized slpmsg\n"); g_return_if_reached();