The Samba-Bugzilla – Attachment 5707 Details for
Bug 7399
SMB2: QUERY_DIRECTORY is returning invalid values.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Pretty sure this will nail it (in conjunction with the earlier patch).
look (text/plain), 654 bytes, created by
Jeremy Allison
on 2010-05-13 17:51:43 UTC
(
hide
)
Description:
Pretty sure this will nail it (in conjunction with the earlier patch).
Filename:
MIME Type:
Creator:
Jeremy Allison
Created:
2010-05-13 17:51:43 UTC
Size:
654 bytes
patch
obsolete
>diff --git a/source3/smbd/smb2_find.c b/source3/smbd/smb2_find.c >index 66be756..6690adc 100644 >--- a/source3/smbd/smb2_find.c >+++ b/source3/smbd/smb2_find.c >@@ -373,7 +373,11 @@ static struct tevent_req *smbd_smb2_find_send(TALLOC_CTX *mem_ctx, > state->out_output_buffer.length = 0; > pdata = (char *)state->out_output_buffer.data; > base_data = pdata; >- end_data = pdata + in_output_buffer_length; >+ /* >+ * end_data must include the safety margin as it's what is >+ * used to determine if pushed strings have been truncated. >+ */ >+ end_data = pdata + in_output_buffer_length + DIR_ENTRY_SAFETY_MARGIN - 1; > last_entry_off = 0; > off = 0; > num = 0;
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 7399
:
5671
|
5673
|
5676
|
5677
|
5678
| 5707