The Samba-Bugzilla – Attachment 5143 Details for
Bug 7020
smbd using 2G memory
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
git-am format patch for 3.4.4
0001-Second-part-of-the-fix-for-bug-7020-smbd-using-2G.patch (text/plain), 1.15 KB, created by
Jeremy Allison
on 2010-01-06 15:49:21 UTC
(
hide
)
Description:
git-am format patch for 3.4.4
Filename:
MIME Type:
Creator:
Jeremy Allison
Created:
2010-01-06 15:49:21 UTC
Size:
1.15 KB
patch
obsolete
>From 1e7411ee9afb148c517a0ec82d5684b347e8f564 Mon Sep 17 00:00:00 2001 >From: Jeremy Allison <jra@samba.org> >Date: Wed, 6 Jan 2010 13:29:35 -0800 >Subject: [PATCH] Second part of the fix for bug #7020 - smbd using 2G memory. > >There was a second leak in the processing of the out_data.frag >prs_struct. It needs freeing once the current pdu has been returned >asynchronously. > >Jeremy. >--- > source3/rpc_server/srv_pipe_hnd.c | 7 +++++++ > 1 files changed, 7 insertions(+), 0 deletions(-) > >diff --git a/source3/rpc_server/srv_pipe_hnd.c b/source3/rpc_server/srv_pipe_hnd.c >index ffb7dde..14b137b 100644 >--- a/source3/rpc_server/srv_pipe_hnd.c >+++ b/source3/rpc_server/srv_pipe_hnd.c >@@ -890,6 +890,13 @@ static ssize_t read_from_internal_pipe(struct pipes_struct *p, char *data, size_ > out: > (*is_data_outstanding) = prs_offset(&p->out_data.frag) > n; > >+ if (p->out_data.current_pdu_sent == prs_offset(&p->out_data.frag)) { >+ /* We've returned everything in the out_data.frag >+ * so we're done with this pdu. Free it and reset >+ * current_pdu_sent. */ >+ p->out_data.current_pdu_sent = 0; >+ prs_mem_free(&p->out_data.frag); >+ } > return data_returned; > } > >-- >1.5.4.3 >
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 7020
:
5129
|
5130
|
5131
|
5132
|
5133
|
5134
|
5135
|
5136
|
5137
|
5138
|
5139
|
5141
|
5142
| 5143 |
5149