summaryrefslogtreecommitdiff
path: root/chat/gaim/patches
diff options
context:
space:
mode:
authorreed <reed@pkgsrc.org>2005-08-12 17:52:16 +0000
committerreed <reed@pkgsrc.org>2005-08-12 17:52:16 +0000
commite3defee8fdcf920ec9908f21720bc0b101a4e33c (patch)
tree109a481019a7151f3864b9d5cf4899943d973d3f /chat/gaim/patches
parent65103177753f6b7cf7c3b4ac91d643d5b9f55d65 (diff)
downloadpkgsrc-e3defee8fdcf920ec9908f21720bc0b101a4e33c.tar.gz
Update to 1.5.0 from maintainer, Matthew Luckie, via PR #30974.
"this release of gaim has a few security fixes which mirror the effects of patch-ae patch-af patch-ag" ChangeLog says: version 1.5.0 (8/11/2005): * Ability to set IRC quit message (Lalo Martins) * OSCAR file transfers now work for 2 users behind the same NAT (Jonathan Clark) * Yahoo! buddy requests to add you to their buddy list now prompt for authorization * Added a /clear command for conversations/chats * Fixed ICQ encoding for messages with offline ICQ users (Ilya Konstantinov, SF Bug #1179452) * Default Yahoo! chat roomlist locale to 'us'
Diffstat (limited to 'chat/gaim/patches')
-rw-r--r--chat/gaim/patches/patch-ae20
-rw-r--r--chat/gaim/patches/patch-af78
-rw-r--r--chat/gaim/patches/patch-ag26
3 files changed, 0 insertions, 124 deletions
diff --git a/chat/gaim/patches/patch-ae b/chat/gaim/patches/patch-ae
deleted file mode 100644
index c6ad1d130db..00000000000
--- a/chat/gaim/patches/patch-ae
+++ /dev/null
@@ -1,20 +0,0 @@
-$NetBSD: patch-ae,v 1.3 2005/08/05 14:33:53 salo Exp $
-
-Fix for CAN-2005-2370, from Gaim CVS.
-
---- src/protocols/gg/libgg.c.orig 2005-03-02 12:53:57.000000000 +0100
-+++ src/protocols/gg/libgg.c 2005-08-05 15:38:42.000000000 +0200
-@@ -1098,8 +1098,11 @@
-
- e->event.status60.descr = buf;
-
-- if (len > 4 && p[h->length - 5] == 0)
-- e->event.status60.time = *((int*) (p + h->length - 4));
-+ if (len > 4 && p[h->length - 5] == 0) {
-+ uint32_t t;
-+ memcpy(&t, p + h->length - 4, sizeof(uint32_t));
-+ e->event.status60.time = t;
-+ }
- }
-
- break;
diff --git a/chat/gaim/patches/patch-af b/chat/gaim/patches/patch-af
deleted file mode 100644
index 7e0dd28621e..00000000000
--- a/chat/gaim/patches/patch-af
+++ /dev/null
@@ -1,78 +0,0 @@
-$NetBSD: patch-af,v 1.1 2005/08/10 16:13:34 salo Exp $
-
-Fix for CAN-2005-2103, from RedHat.
-
---- src/util.c.orig 2005-06-09 06:00:36.000000000 +0200
-+++ src/util.c 2005-08-10 16:35:33.000000000 +0200
-@@ -2129,8 +2129,7 @@
- gaim_str_sub_away_formatters(const char *str, const char *name)
- {
- char *c;
-- gchar *cpy;
-- int cnt = 0;
-+ GString *cpy;
- time_t t;
- struct tm *tme;
- char tmp[20];
-@@ -2138,12 +2137,12 @@
- g_return_val_if_fail(str != NULL, NULL);
- g_return_val_if_fail(name != NULL, NULL);
-
-- cpy = g_malloc(BUF_LONG);
-+ /* Create an empty GString that is hopefully big enough for most messages */
-+ cpy = g_string_sized_new(1024);
-
- t = time(NULL);
- tme = localtime(&t);
-
-- cpy[0] = '\0';
- c = (char *)str;
- while (*c) {
- switch (*c) {
-@@ -2152,39 +2151,35 @@
- switch (*(c + 1)) {
- case 'n':
- /* append name */
-- strcpy(cpy + cnt, name);
-- cnt += strlen(name);
-+ g_string_append(cpy, name);
- c++;
- break;
- case 'd':
- /* append date */
- strftime(tmp, 20, "%m/%d/%Y", tme);
-- strcpy(cpy + cnt, tmp);
-- cnt += strlen(tmp);
-+ g_string_append(cpy, tmp);
- c++;
- break;
- case 't':
- /* append time */
- strftime(tmp, 20, "%I:%M:%S %p", tme);
-- strcpy(cpy + cnt, tmp);
-- cnt += strlen(tmp);
-+ g_string_append(cpy, tmp);
- c++;
- break;
- default:
-- cpy[cnt++] = *c;
-+ g_string_append_c(cpy, *c);
- }
- } else {
-- cpy[cnt++] = *c;
-+ g_string_append_c(cpy, *c);
- }
- break;
- default:
-- cpy[cnt++] = *c;
-+ g_string_append_c(cpy, *c);
- }
- c++;
- }
-- cpy[cnt] = '\0';
-
-- return cpy;
-+ return g_string_free(cpy, FALSE);
- }
-
- gchar *
diff --git a/chat/gaim/patches/patch-ag b/chat/gaim/patches/patch-ag
deleted file mode 100644
index 64ed2fdbdef..00000000000
--- a/chat/gaim/patches/patch-ag
+++ /dev/null
@@ -1,26 +0,0 @@
-$NetBSD: patch-ag,v 1.1 2005/08/10 16:13:34 salo Exp $
-
-Fix for CAN-2005-2102, from RedHat.
-
---- src/protocols/oscar/oscar.c.orig 2005-07-02 18:13:14.000000000 +0200
-+++ src/protocols/oscar/oscar.c 2005-08-10 16:37:02.000000000 +0200
-@@ -3455,7 +3455,18 @@
- xfer = gaim_xfer_new(gc->account, GAIM_XFER_RECEIVE, userinfo->sn);
- xfer->remote_ip = g_strdup(args->verifiedip);
- xfer->remote_port = args->port;
-- gaim_xfer_set_filename(xfer, args->info.sendfile.filename);
-+
-+ if (g_utf8_validate(args->info.sendfile.filename, -1,
-+ NULL)) {
-+ gaim_xfer_set_filename(xfer,
-+ args->info.sendfile.filename);
-+ } else {
-+ gchar * utf8_filename = gaim_utf8_salvage(
-+ args->info.sendfile.filename);
-+ gaim_xfer_set_filename(xfer, utf8_filename);
-+ g_free(utf8_filename);
-+ }
-+
- gaim_xfer_set_size(xfer, args->info.sendfile.totsize);
- gaim_xfer_set_message(xfer, message);
-