The Samba-Bugzilla – Attachment 10263 Details for
Bug 10800
Array index out of bounds in smbtorture
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Alternative patch
look (text/plain), 1.17 KB, created by
Volker Lendecke
on 2014-09-07 19:11:52 UTC
(
hide
)
Description:
Alternative patch
Filename:
MIME Type:
Creator:
Volker Lendecke
Created:
2014-09-07 19:11:52 UTC
Size:
1.17 KB
patch
obsolete
>From ae233a0fa4e8ae51c56191d504f7965734465e14 Mon Sep 17 00:00:00 2001 >From: Volker Lendecke <vl@samba.org> >Date: Sun, 7 Sep 2014 21:09:32 +0200 >Subject: [PATCH] torture: Correctly initialize array size > >Bug: https://bugzilla.samba.org/show_bug.cgi?id=10800 >Signed-off-by: Volker Lendecke <vl@samba.org> >--- > source4/torture/smb2/dir.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/source4/torture/smb2/dir.c b/source4/torture/smb2/dir.c >index 0e409f2..cf96fee 100644 >--- a/source4/torture/smb2/dir.c >+++ b/source4/torture/smb2/dir.c >@@ -895,7 +895,6 @@ static bool check_result(struct torture_context *tctx, > static bool test_modify_search(struct torture_context *tctx, > struct smb2_tree *tree) > { >- int num_files = 700; > struct multiple_result result; > union smb_setfileinfo sfinfo; > TALLOC_CTX *mem_ctx = talloc_new(tctx); >@@ -903,7 +902,8 @@ static bool test_modify_search(struct torture_context *tctx, > struct smb2_handle h; > struct smb2_find f; > union smb_search_data *d; >- struct file_elem files[702] = {}; >+ struct file_elem files[703] = {}; >+ int num_files = ARRAY_SIZE(files)-3; > NTSTATUS status; > bool ret = true; > int i; >-- >1.7.9.5 >
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:
metze
:
review+
Actions:
View
Attachments on
bug 10800
:
10261
| 10263