From 42a82ce3edccab0efc34562feabe549ed1577646 Mon Sep 17 00:00:00 2001 From: Steffen Jaeckel <s@jaeckel.eu> Date: Fri, 9 Jun 2017 14:43:03 +0200 Subject: [PATCH] fix valgrind errors Uninitialized key caused the following error: Conditional jump or move depends on uninitialised value(s) at ...: __memcmp_sse4_1 (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ... --- tests/multi_test.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/multi_test.c b/tests/multi_test.c index dc899c0..519b78f 100644 --- a/tests/multi_test.c +++ b/tests/multi_test.c @@ -3,7 +3,8 @@ int multi_test(void) { - unsigned char key[32], buf[2][MAXBLOCKSIZE]; + unsigned char key[32] = { 0 }; + unsigned char buf[2][MAXBLOCKSIZE]; unsigned long len, len2; /* register algos */