The Samba-Bugzilla – Attachment 6477 Details for
Bug 8159
Memory corruption in fetching cli->server_domain from the server.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
First git-am fix for 3.6.0
0001-s3-Fix-a-leftover-from-fstring-removal-in-cli_state.patch (text/plain), 1.16 KB, created by
Jeremy Allison
on 2011-05-23 18:07:21 UTC
(
hide
)
Description:
First git-am fix for 3.6.0
Filename:
MIME Type:
Creator:
Jeremy Allison
Created:
2011-05-23 18:07:21 UTC
Size:
1.16 KB
patch
obsolete
>From 6bc7746cedb16b8294714e69e241407826796bbd Mon Sep 17 00:00:00 2001 >From: Volker Lendecke <vl@samba.org> >Date: Mon, 23 May 2011 15:36:20 +0200 >Subject: [PATCH 1/2] s3: Fix a leftover from fstring removal in cli_state > >Jeremy, please check! >(cherry picked from commit 9514f96856ccf822b683b5362fd2eb4a4e9e418a) >--- > source3/libsmb/cliconnect.c | 11 +++++++---- > 1 files changed, 7 insertions(+), 4 deletions(-) > >diff --git a/source3/libsmb/cliconnect.c b/source3/libsmb/cliconnect.c >index 12380f5..e2c149c 100644 >--- a/source3/libsmb/cliconnect.c >+++ b/source3/libsmb/cliconnect.c >@@ -2673,10 +2673,13 @@ static void cli_negprot_done(struct tevent_req *subreq) > /* work out if they sent us a workgroup */ > if (!(cli->capabilities & CAP_EXTENDED_SECURITY) && > smb_buflen(cli->inbuf) > 8) { >- clistr_pull(cli->inbuf, cli->server_domain, >- bytes+8, sizeof(cli->server_domain), >- num_bytes-8, >- STR_UNICODE|STR_NOALIGN); >+ ssize_t ret; >+ status = smb_bytes_talloc_string( >+ cli, (char *)cli->inbuf, &cli->server_domain, >+ bytes + 8, num_bytes - 8, &ret); >+ if (tevent_req_nterror(req, status)) { >+ return; >+ } > } > > /* >-- >1.7.3.1 >
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
Flags:
vl
:
review+
Actions:
View
Attachments on
bug 8159
: 6477 |
6478