From 6833094d6bddf53ee403f89e4f949b9e23041974 Mon Sep 17 00:00:00 2001 From: =?utf8?q?G=C3=BCnther=20Deschner?= Date: Sat, 13 Mar 2010 01:37:32 +0100 Subject: [PATCH] s4-smbtorture: send even more random data in extended winreg SetValue test. Guenther --- source4/torture/rpc/winreg.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/source4/torture/rpc/winreg.c b/source4/torture/rpc/winreg.c index 0f3e383a200..538def60d4a 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, -- 2.11.4.GIT