The Samba-Bugzilla – Attachment 5197 Details for
Bug 7046
libsmbclient crash against OpenSolaris CIFS server
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for 3.4
7406-3.4.0.patch (text/plain), 1.00 KB, created by
Volker Lendecke
on 2010-01-16 06:59:20 UTC
(
hide
)
Description:
Patch for 3.4
Filename:
MIME Type:
Creator:
Volker Lendecke
Created:
2010-01-16 06:59:20 UTC
Size:
1.00 KB
patch
obsolete
>From 5351b5f8af95bb93220f4613440f05bef978539f Mon Sep 17 00:00:00 2001 >From: Volker Lendecke <vl@samba.org> >Date: Sat, 16 Jan 2010 13:31:44 +0100 >Subject: [PATCH] s3: Fix a crash in libsmbclient used against the OpenSolaris CIFS server > >A user has sent me a sniff where the OpenSolaris CIFS server returns "32" in >totalentries, but the array in ctr only contains 15 entries. Look at the right >delimiter for walking the array. >--- > source3/libsmb/libsmb_dir.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > >diff --git a/source3/libsmb/libsmb_dir.c b/source3/libsmb/libsmb_dir.c >index 143c61c..3884f23 100644 >--- a/source3/libsmb/libsmb_dir.c >+++ b/source3/libsmb/libsmb_dir.c >@@ -303,7 +303,7 @@ net_share_enum_rpc(struct cli_state *cli, > } > > /* For each returned entry... */ >- for (i = 0; i < total_entries; i++) { >+ for (i = 0; i < info_ctr.ctr.ctr1->count; i++) { > > /* pull out the share name */ > fstrcpy(name, info_ctr.ctr.ctr1->array[i].name); >-- >1.6.0.4 >
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 7046
:
5196
| 5197 |
5198