Mercurial > pidgin
comparison libpurple/protocols/msn/p2p.c @ 31319:8cf9270acf4c
Add a maximum length when parsing the P2P wire data.
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Thu, 10 Mar 2011 05:00:17 +0000 |
parents | 9562a7baa9e4 |
children | eeca86db288b |
comparison
equal
deleted
inserted
replaced
31318:a01d958f7b26 | 31319:8cf9270acf4c |
---|---|
86 | 86 |
87 g_free(info); | 87 g_free(info); |
88 } | 88 } |
89 | 89 |
90 size_t | 90 size_t |
91 msn_p2p_header_from_wire(MsnP2PInfo *info, const char *wire) | 91 msn_p2p_header_from_wire(MsnP2PInfo *info, const char *wire, size_t max_len) |
92 { | 92 { |
93 size_t len; | 93 size_t len; |
94 | 94 |
95 switch (info->version) { | 95 switch (info->version) { |
96 case MSN_P2P_VERSION_ONE: { | 96 case MSN_P2P_VERSION_ONE: { |