git.samba.org
/
sfrench
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c0dfda3
)
Use correct size for test string, sizeof() was of the pointer
author
Andrew Bartlett
<abartlet@samba.org>
Mon, 1 Sep 2014 22:48:34 +0000
(10:48 +1200)
committer
Andrew Bartlett
<abartlet@samba.org>
Mon, 8 Sep 2014 05:26:34 +0000
(07:26 +0200)
Found by AddressSanitizer
Change-Id: Ifc9883d958f253df903775544010c0228a102f0f
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Kamen Mazdrashki <kamenim@samba.org>
source4/lib/registry/tests/registry.c
patch
|
blob
|
history
diff --git
a/source4/lib/registry/tests/registry.c
b/source4/lib/registry/tests/registry.c
index b9b7c288e6dc90dffc7599e9a64920283435863f..b4f4ae8c842b5655e19a8f77420fda34c7f3c025 100644
(file)
--- a/
source4/lib/registry/tests/registry.c
+++ b/
source4/lib/registry/tests/registry.c
@@
-270,7
+270,7
@@
static bool test_query_key(struct torture_context *tctx, void *_data)
torture_assert_int_equal(tctx, num_values, 0, "num values");
error = reg_val_set(subkey, "", REG_SZ,
- data_blob_
talloc(tctx, data, sizeof(data)
));
+ data_blob_
string_const(data
));
torture_assert_werr_ok(tctx, error, "set default value");
error = reg_key_get_info(tctx, subkey, &classname,