[SCM] Samba Shared Repository - branch master updated
Andreas Schneider
asn at samba.org
Sun Dec 4 09:13:02 UTC 2022
The branch, master has been updated
via a451fa5ef93 lib:compression: Initialize variables
from cffe96ef613 nfs4_acl: Add comment for setting ACL as root
https://git.samba.org/?p=samba.git;a=shortlog;h=master
- Log -----------------------------------------------------------------
commit a451fa5ef93539aa960b36f6282fd6080b9babcd
Author: Andreas Schneider <asn at samba.org>
Date: Sat Dec 3 18:20:53 2022 +0100
lib:compression: Initialize variables
lib/compression/tests/test_lzx_huffman.c: In function ‘test_lzxpress_huffman_overlong_matches’:
lib/compression/tests/test_lzx_huffman.c:1013:35: error: ‘j’ may be used uninitialized [-Werror=maybe-uninitialized]
1013 | assert_int_equal(score, i * j);
| ^
lib/compression/tests/test_lzx_huffman.c:979:19: note: ‘j’ was declared here
979 | size_t i, j;
| ^
lib/compression/tests/test_lzx_huffman.c: In function ‘test_lzxpress_huffman_overlong_matches_abc’:
lib/compression/tests/test_lzx_huffman.c:1059:39: error: ‘k’ may be used uninitialized [-Werror=maybe-uninitialized]
1059 | assert_int_equal(score, i * j * k);
| ^
lib/compression/tests/test_lzx_huffman.c:1020:22: note: ‘k’ was declared here
1020 | size_t i, j, k;
| ^
lib/compression/tests/test_lzx_huffman.c:1059:35: error: ‘j’ may be used uninitialized [-Werror=maybe-uninitialized]
1059 | assert_int_equal(score, i * j * k);
| ^
lib/compression/tests/test_lzx_huffman.c:1020:19: note: ‘j’ was declared here
1020 | size_t i, j, k;
| ^
Signed-off-by: Andreas Schneider <asn at samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall at catalyst.net.nz>
Autobuild-User(master): Andreas Schneider <asn at cryptomilk.org>
Autobuild-Date(master): Sun Dec 4 09:12:30 UTC 2022 on sn-devel-184
-----------------------------------------------------------------------
Summary of changes:
lib/compression/tests/test_lzx_huffman.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Changeset truncated at 500 lines:
diff --git a/lib/compression/tests/test_lzx_huffman.c b/lib/compression/tests/test_lzx_huffman.c
index 2adbe68f799..da094555c2d 100644
--- a/lib/compression/tests/test_lzx_huffman.c
+++ b/lib/compression/tests/test_lzx_huffman.c
@@ -976,7 +976,7 @@ static void test_lzxpress_huffman_random_noise_round_trip(void **state)
static void test_lzxpress_huffman_overlong_matches(void **state)
{
- size_t i, j;
+ size_t i, j = 0;
TALLOC_CTX *mem_ctx = talloc_new(NULL);
DATA_BLOB original = data_blob_talloc(mem_ctx, NULL, 1024 * 1024);
DATA_BLOB ref = {0};
@@ -1017,7 +1017,7 @@ static void test_lzxpress_huffman_overlong_matches(void **state)
static void test_lzxpress_huffman_overlong_matches_abc(void **state)
{
- size_t i, j, k;
+ size_t i, j = 0, k = 0;
TALLOC_CTX *mem_ctx = talloc_new(NULL);
DATA_BLOB original = data_blob_talloc(mem_ctx, NULL, 1024 * 1024);
DATA_BLOB ref = {0};
--
Samba Shared Repository
More information about the samba-cvs
mailing list