diff options
author | Chris D. Faulhaber <jedgar@FreeBSD.org> | 2001-01-25 03:19:53 +0000 |
---|---|---|
committer | Chris D. Faulhaber <jedgar@FreeBSD.org> | 2001-01-25 03:19:53 +0000 |
commit | 086070ab8556188fab9f146c914d269602e5caa4 (patch) | |
tree | cf3d923b518ab041b2e40d8ad34743ef5f64f217 /net/micq/files/patch-ae | |
parent | Another day. Another GNOME release. 1.2.10 here (diff) |
- Update port to 0.4.6p1 (fixes remote buffer overflow)
- Add some additional buffer checks
Diffstat (limited to '')
-rw-r--r-- | net/micq/files/patch-ae | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/net/micq/files/patch-ae b/net/micq/files/patch-ae new file mode 100644 index 000000000000..9b877e48dc8a --- /dev/null +++ b/net/micq/files/patch-ae @@ -0,0 +1,24 @@ +--- icq_response.c.orig Tue Jan 23 11:49:05 2001 ++++ icq_response.c Wed Jan 24 22:07:40 2001 +@@ -871,19 +871,12 @@ + } + *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); ++ strlcpy(url_desc,data,sizeof(url_data)); + + 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); ++ strlcpy(url_data,data,sizeof(url_data)); + + // and again + // sprintf (message,"Description: %s \n URL: %s",url_desc,url_data); |