The Samba-Bugzilla – Attachment 900 Details for
Bug 2263
smbd coredumps when adding "User manager for domains"
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Add sanity checks to the input parameters in base64_encode_data_blob()
patch-lib_util_str.c (text/plain), 659 bytes, created by
Timur Bakeyev
on 2005-01-19 20:58:02 UTC
(
hide
)
Description:
Add sanity checks to the input parameters in base64_encode_data_blob()
Filename:
MIME Type:
Creator:
Timur Bakeyev
Created:
2005-01-19 20:58:02 UTC
Size:
659 bytes
patch
obsolete
>--- lib/util_str.c.orig Wed Dec 15 15:33:12 2004 >+++ lib/util_str.c Fri Dec 17 02:15:34 2004 >@@ -2008,10 +2008,16 @@ > { > int bits = 0; > int char_count = 0; >- size_t out_cnt = 0; >- size_t len = data.length; >- size_t output_len = data.length * 2; >- char *result = SMB_MALLOC(output_len); /* get us plenty of space */ >+ size_t out_cnt, len, output_len; >+ char *result; >+ >+ if (!data.length || !data.data) >+ return NULL; >+ >+ out_cnt = 0; >+ len = data.length; >+ output_len = data.length * 2; >+ result = SMB_MALLOC(output_len); /* get us plenty of space */ > > while (len-- && out_cnt < (data.length * 2) - 5) { > int c = (unsigned char) *(data.data++);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 2263
: 900