Sun, 17 Oct 2010 03:55:04 +0000
Fix for CVE-2010-3711. Properly validate the return value from
purple_base64_decode() (the CVE issue) and purple_base16_decode() (just a bug).
Coincidentally, this should also fix #12614.
committer: John Bailey <rekkanoryo@rekkanoryo.org>
|
30649
d96a69a9154e
Added a way to add a user to the (In)Visible list via the context menu.
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
1 | /* |
|
d96a69a9154e
Added a way to add a user to the (In)Visible list via the context menu.
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
2 | * Purple's oscar protocol plugin |
|
d96a69a9154e
Added a way to add a user to the (In)Visible list via the context menu.
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
3 | * This file is the legal property of its developers. |
|
d96a69a9154e
Added a way to add a user to the (In)Visible list via the context menu.
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
4 | * Please see the AUTHORS file distributed alongside this file. |
|
d96a69a9154e
Added a way to add a user to the (In)Visible list via the context menu.
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
5 | * |
|
d96a69a9154e
Added a way to add a user to the (In)Visible list via the context menu.
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
6 | * This library is free software; you can redistribute it and/or |
|
d96a69a9154e
Added a way to add a user to the (In)Visible list via the context menu.
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
7 | * modify it under the terms of the GNU Lesser General Public |
|
d96a69a9154e
Added a way to add a user to the (In)Visible list via the context menu.
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
8 | * License as published by the Free Software Foundation; either |
|
d96a69a9154e
Added a way to add a user to the (In)Visible list via the context menu.
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
9 | * version 2 of the License, or (at your option) any later version. |
|
d96a69a9154e
Added a way to add a user to the (In)Visible list via the context menu.
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
10 | * |
|
d96a69a9154e
Added a way to add a user to the (In)Visible list via the context menu.
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
11 | * This library is distributed in the hope that it will be useful, |
|
d96a69a9154e
Added a way to add a user to the (In)Visible list via the context menu.
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
d96a69a9154e
Added a way to add a user to the (In)Visible list via the context menu.
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|
d96a69a9154e
Added a way to add a user to the (In)Visible list via the context menu.
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
14 | * Lesser General Public License for more details. |
|
d96a69a9154e
Added a way to add a user to the (In)Visible list via the context menu.
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
15 | * |
|
d96a69a9154e
Added a way to add a user to the (In)Visible list via the context menu.
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
16 | * You should have received a copy of the GNU Lesser General Public |
|
d96a69a9154e
Added a way to add a user to the (In)Visible list via the context menu.
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
17 | * License along with this library; if not, write to the Free Software |
|
d96a69a9154e
Added a way to add a user to the (In)Visible list via the context menu.
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
18 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
|
d96a69a9154e
Added a way to add a user to the (In)Visible list via the context menu.
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
19 | */ |
|
d96a69a9154e
Added a way to add a user to the (In)Visible list via the context menu.
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
20 | |
|
d96a69a9154e
Added a way to add a user to the (In)Visible list via the context menu.
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
21 | #ifndef _VISIBILITY_H_ |
|
d96a69a9154e
Added a way to add a user to the (In)Visible list via the context menu.
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
22 | #define _VISIBILITY_H_ |
|
d96a69a9154e
Added a way to add a user to the (In)Visible list via the context menu.
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
23 | |
|
d96a69a9154e
Added a way to add a user to the (In)Visible list via the context menu.
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
24 | #include "oscar.h" |
|
30650
1e60e49674dd
Added a way to view the Visible/Invisible lists.
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
30649
diff
changeset
|
25 | #include "plugin.h" |
|
30649
d96a69a9154e
Added a way to add a user to the (In)Visible list via the context menu.
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
26 | #include "util.h" |
|
d96a69a9154e
Added a way to add a user to the (In)Visible list via the context menu.
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
27 | |
|
d96a69a9154e
Added a way to add a user to the (In)Visible list via the context menu.
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
28 | PurpleMenuAction * create_visibility_menu_item(OscarData *od, const char *bname); |
|
30650
1e60e49674dd
Added a way to view the Visible/Invisible lists.
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
30649
diff
changeset
|
29 | void oscar_show_visible_list(PurplePluginAction *action); |
|
1e60e49674dd
Added a way to view the Visible/Invisible lists.
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
30649
diff
changeset
|
30 | void oscar_show_invisible_list(PurplePluginAction *action); |
|
30649
d96a69a9154e
Added a way to add a user to the (In)Visible list via the context menu.
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
31 | |
|
d96a69a9154e
Added a way to add a user to the (In)Visible list via the context menu.
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
32 | #endif |