From 9ccb6864be25356108d2782871ea07f5be038a9b Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Tue, 19 Jan 2016 11:15:42 +0100 Subject: [PATCH] tests: Initialize output and iv in torture_crypto Signed-off-by: Andreas Schneider --- tests/unittests/torture_crypto.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/unittests/torture_crypto.c b/tests/unittests/torture_crypto.c index 4eaa4f61..7c8cf55b 100644 --- a/tests/unittests/torture_crypto.c +++ b/tests/unittests/torture_crypto.c @@ -49,11 +49,12 @@ static int get_cipher(struct ssh_cipher_struct *cipher, const char *ciphername){ return SSH_ERROR; } -static void torture_crypto_aes256_cbc(void **state){ +static void torture_crypto_aes256_cbc(void **state) +{ + uint8_t output[sizeof(cleartext)] = {0}; + uint8_t iv[16] = {0}; struct ssh_cipher_struct cipher; int rc; - uint8_t output[sizeof(cleartext)]; - uint8_t iv[16]; (void)state; rc = get_cipher(&cipher, "aes256-cbc");