diff options
author | tron <tron@pkgsrc.org> | 2001-01-31 19:10:12 +0000 |
---|---|---|
committer | tron <tron@pkgsrc.org> | 2001-01-31 19:10:12 +0000 |
commit | a29b03fce247bf8e581673e8018e27fa473407c9 (patch) | |
tree | 4a3e9eae1252893df3a146a6fb63aefb362e6de9 /chat/micq/patches | |
parent | fcccd4aaa474a09cc34acf8fd0bf012fcd2dc59d (diff) | |
download | pkgsrc-a29b03fce247bf8e581673e8018e27fa473407c9.tar.gz |
Update "micq" package to version 0.4.6.1 and integrate security fixes from
FreeBSD ports collection.
Diffstat (limited to 'chat/micq/patches')
-rw-r--r-- | chat/micq/patches/patch-aa | 20 | ||||
-rw-r--r-- | chat/micq/patches/patch-ab | 13 | ||||
-rw-r--r-- | chat/micq/patches/patch-ac | 13 | ||||
-rw-r--r-- | chat/micq/patches/patch-ad | 42 | ||||
-rw-r--r-- | chat/micq/patches/patch-ae | 28 |
5 files changed, 106 insertions, 10 deletions
diff --git a/chat/micq/patches/patch-aa b/chat/micq/patches/patch-aa index bbb857b2fec..5da1b5f05a2 100644 --- a/chat/micq/patches/patch-aa +++ b/chat/micq/patches/patch-aa @@ -1,15 +1,15 @@ -$NetBSD: patch-aa,v 1.1.1.1 2000/12/15 00:36:29 wiz Exp $ +$NetBSD: patch-aa,v 1.2 2001/01/31 19:10:12 tron Exp $ ---- Makefile.orig Sat Jun 10 00:18:38 2000 -+++ Makefile Fri Jun 16 13:56:56 2000 -@@ -5,8 +5,8 @@ - # Most options that were here and soem that weren't have been moved to config.h - # edit that file to set up options. - # +--- Makefile.orig Tue Jan 23 17:49:05 2001 ++++ Makefile Wed Jan 31 19:57:23 2001 +@@ -2,8 +2,8 @@ + # originally by Matt D. Smith + # rewritten by Rico Gloeckner <mc@verdinet.de> + -CC = gcc -CFLAGS = -O4 -Wall -DUNIX +#CC = gcc +CFLAGS += -Wall -DUNIX - CFLAGS += -DENGLISH_LANG - #CFLAGS += -DBULGARIAN_LANG - #CFLAGS += -DPOLISH_LANG + + # uncomment the line below for debuging info + #CFLAGS += -g diff --git a/chat/micq/patches/patch-ab b/chat/micq/patches/patch-ab new file mode 100644 index 00000000000..073432bd198 --- /dev/null +++ b/chat/micq/patches/patch-ab @@ -0,0 +1,13 @@ +$NetBSD: patch-ab,v 1.1 2001/01/31 19:10:12 tron Exp $ + +--- mreadline.c.orig Tue Jan 23 11:49:05 2001 ++++ mreadline.c Wed Jan 24 22:01:31 2001 +@@ -359,7 +359,7 @@ + break; + } + } +- sprintf (s, "%s %s/", message_cmd, ++ snprintf (s, sizeof(s), "%s %s/", message_cmd, + tab_array[tab_pointer]); + clen = cpos = strlen (s); + R_undraw(); diff --git a/chat/micq/patches/patch-ac b/chat/micq/patches/patch-ac new file mode 100644 index 00000000000..0a5de64c499 --- /dev/null +++ b/chat/micq/patches/patch-ac @@ -0,0 +1,13 @@ +$NetBSD: patch-ac,v 1.1 2001/01/31 19:10:12 tron Exp $ + +--- sendmsg.c.orig Tue Jan 23 11:49:05 2001 ++++ sendmsg.c Wed Jan 24 22:02:47 2001 +@@ -977,7 +977,7 @@ + { + char buf[450]; + +- sprintf( buf, "%s\xFE%s", url, description ); ++ snprintf( buf, sizeof(buf), "%s\xFE%s", url, description ); + icq_sendmsg( sok, uin, buf, URL_MESS ); + } + diff --git a/chat/micq/patches/patch-ad b/chat/micq/patches/patch-ad new file mode 100644 index 00000000000..ec798279762 --- /dev/null +++ b/chat/micq/patches/patch-ad @@ -0,0 +1,42 @@ +$NetBSD: patch-ad,v 1.1 2001/01/31 19:10:12 tron Exp $ + +--- util_ui.c.orig Tue Jan 23 17:49:05 2001 ++++ util_ui.c Wed Jan 31 20:07:47 2001 +@@ -102,7 +102,7 @@ + assert( 2048 >= strlen( str ) ); + + va_start( args, str ); +- vsprintf( buf, str, args ); ++ vsnprintf( buf, sizeof(buf), str, args ); + k = write( fd, buf, strlen( buf ) ); + if ( k != strlen( buf ) ) + { +@@ -292,7 +292,7 @@ + + va_start( args, str ); + #ifndef CURSES_UI +- vsprintf( buf, str, args ); ++ vsnprintf( buf, sizeof(buf), str, args ); + str2 = buf; + while ( (void *) NULL != ( str1 = strchr( str2, '\x1b' ) ) ) + { +@@ -423,19 +423,6 @@ + thetime=localtime(&p); + + M_print( "%.02d:%.02d:%.02d",thetime->tm_hour,thetime->tm_min,thetime->tm_sec ); +-} +- +-static void remove_tab( int index ) +-{ +- int j; +- +- if ( tab_array[ index ] != NULL ) { +- free( tab_array[ index ] ); +- } +- for ( j=index; j+1<TAB_SLOTS; j++ ) { +- tab_array[ j ] = tab_array[ j+1 ]; +- } +- tab_array[ TAB_SLOTS ] = NULL; + } + + void add_tab( DWORD uin ) diff --git a/chat/micq/patches/patch-ae b/chat/micq/patches/patch-ae new file mode 100644 index 00000000000..f0d490025d7 --- /dev/null +++ b/chat/micq/patches/patch-ae @@ -0,0 +1,28 @@ +$NetBSD: patch-ae,v 1.1 2001/01/31 19:10:13 tron Exp $ + +--- icq_response.c.orig Tue Jan 23 17:49:05 2001 ++++ icq_response.c Wed Jan 31 20:05:15 2001 +@@ -871,19 +871,14 @@ + } + *tmp = 0; + char_conv ("wc",data); +-// temporaryy fix to buffer overflow +-// should be solved better -mc +-// strcpy (url_desc,data); +- url_desc[0] = '\0'; +- strncat(url_desc,data,sizeof(url_data)-1); ++ strncpy(url_desc,data,sizeof(url_data)-1); ++ url_data[sizeof(url_data)-1] = '\0'; + + tmp++; + data = tmp; + char_conv ("wc",data); +-// same apllies here --mc +-// strcpy (url_data,data); +- url_data[0] = '\0'; +- strncat (url_data,data,sizeof(url_data)-1); ++ strncpy(url_data,data,sizeof(url_data)-1); ++ url_data[sizeof(url_data)-1] = '\0'; + + // and again + // sprintf (message,"Description: %s \n URL: %s",url_desc,url_data); |