Bugzilla – Attachment 22904 Details for
Bug 59194
VUL-0: CVE-2004-2589: new gaim issues
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
IDP Log In
|
Forgot Password
[patch]
patch for 0.81 with only url_decode and url_encode fixed
44194-url.diff (text/plain), 665 bytes, created by
Ludwig Nussel
on 2004-08-25 21:30:04 UTC
(
hide
)
Description:
patch for 0.81 with only url_decode and url_encode fixed
Filename:
MIME Type:
Creator:
Ludwig Nussel
Created:
2004-08-25 21:30:04 UTC
Size:
665 bytes
patch
obsolete
>--- gaim-0.81.orig/src/util.c >+++ gaim-0.81/src/util.c >@@ -2842,7 +2842,7 @@ gaim_url_decode(const char *str) > > g_return_val_if_fail(str != NULL, NULL); > >- for (i = 0; i < strlen(str); i++) { >+ for (i = 0; i < strlen(str) && j < sizeof(buf)-2; i++) { > char hex[3]; > > if (str[i] != '%') >@@ -2879,9 +2879,12 @@ gaim_url_encode(const char *str) > g_return_val_if_fail(str != NULL, NULL); > > for (i = 0; i < strlen(str); i++) { >- if (isalnum(str[i])) >+ if (isalnum(str[i])) { >+ if(j+1 >= sizeof(buf)-1) break; > buf[j++] = str[i]; >+ } > else { >+ if(j+3 >= sizeof(buf)-1) break; > sprintf(buf + j, "%%%02x", (unsigned char)str[i]); > j += 3; > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
Actions:
View
|
Diff
Attachments on
bug 59194
:
22895
|
22896
|
22899
|
22900
|
22902
| 22904