summaryrefslogtreecommitdiff
path: root/source4/torture/rpc
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2010-03-13 01:37:32 +0100
committerGünther Deschner <gd@samba.org>2010-03-13 01:38:57 +0100
commit6833094d6bddf53ee403f89e4f949b9e23041974 (patch)
treed55da04b2829a06fdff5e430b50277a5852d0d10 /source4/torture/rpc
parent33d9901ecb448835fe566932df609a60f288a87f (diff)
downloadsamba-6833094d6bddf53ee403f89e4f949b9e23041974.tar.gz
samba-6833094d6bddf53ee403f89e4f949b9e23041974.tar.bz2
samba-6833094d6bddf53ee403f89e4f949b9e23041974.zip
s4-smbtorture: send even more random data in extended winreg SetValue test.
Guenther
Diffstat (limited to 'source4/torture/rpc')
-rw-r--r--source4/torture/rpc/winreg.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source4/torture/rpc/winreg.c b/source4/torture/rpc/winreg.c
index 0f3e383a20..538def60d4 100644
--- a/source4/torture/rpc/winreg.c
+++ b/source4/torture/rpc/winreg.c
@@ -2038,10 +2038,10 @@ static bool test_SetValue_extended(struct dcerpc_pipe *p,
14,
55,
123456,
- 653210
+ 653210,
+ __LINE__
};
- const char *str = "abcdefghijklmnopqrstuvwxzy";
- int t, s;
+ int t, l;
if (torture_setting_bool(tctx, "samba3", false) ||
torture_setting_bool(tctx, "samba4", false)) {
@@ -2051,13 +2051,13 @@ static bool test_SetValue_extended(struct dcerpc_pipe *p,
torture_comment(tctx, "Testing SetValue (extended formats)\n");
for (t=0; t < ARRAY_SIZE(types); t++) {
- for (s=0; s < strlen(str); s++) {
+ for (l=0; l < 32; l++) {
enum winreg_Type w_type;
uint32_t w_size, w_length;
uint8_t *w_data;
- const char *string = talloc_strndup(tctx, str, s);
+ const char *string = generate_random_str(tctx, l);
DATA_BLOB blob = data_blob_string_const(string);
torture_assert(tctx,