comparison libpurple/protocols/msn/slpmsg.h @ 29072:69077f3993f6

Fix CVE-2010-0277, a possible remote crash when parsing an incoming SLP message. Discovered by Fabian Yamaguchi.
author Mark Doliner <mark@kingant.net>
date Tue, 16 Feb 2010 08:54:07 +0000
parents 6aea98f6a5cd
children b98d1ca8422d
comparison
equal deleted inserted replaced
29071:1eeeb20f0b9f 29072:69077f3993f6
55 long flags; 55 long flags;
56 56
57 gboolean ft; 57 gboolean ft;
58 PurpleStoredImage *img; 58 PurpleStoredImage *img;
59 guchar *buffer; 59 guchar *buffer;
60
61 /**
62 * For outgoing messages this is the number of bytes from buffer that
63 * have already been sent out. For incoming messages this is the
64 * number of bytes that have been written to buffer.
65 */
60 long long offset; 66 long long offset;
67
68 /**
69 * This is the size of buffer, unless this is an outgoing file transfer,
70 * in which case this is the size of the file.
71 */
61 long long size; 72 long long size;
62 73
63 GList *msgs; /**< The real messages. */ 74 GList *msgs; /**< The real messages. */
64 75
65 #if 1 76 #if 1