git.samba.org
/
tridge
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b76bd39
)
s4:torture:smb2: fix illegal write/uninitialized data bug in the lease.multibreak...
author
Michael Adam
<obnox@samba.org>
Wed, 2 Nov 2011 14:46:49 +0000
(15:46 +0100)
committer
Michael Adam
<obnox@samba.org>
Wed, 9 Nov 2011 00:02:08 +0000
(
01:02
+0100)
source4/torture/smb2/lease.c
patch
|
blob
|
history
diff --git
a/source4/torture/smb2/lease.c
b/source4/torture/smb2/lease.c
index fc1f7c7d247be99b2d28b527fedbf6f2edc2b9e3..a1be4ac1a5f440beadf8fbc68e5d6058f6194366 100644
(file)
--- a/
source4/torture/smb2/lease.c
+++ b/
source4/torture/smb2/lease.c
@@
-901,6
+901,7
@@
static bool test_lease_multibreak(struct torture_context *tctx,
w.in.file.handle = h3;
w.in.offset = 0;
w.in.data = data_blob_talloc(mem_ctx, NULL, 4096);
+ memset(w.in.data.data, 'o', w.in.data.length);
status = smb2_write(tree, &w);
CHECK_STATUS(status, NT_STATUS_OK);