From 34241cbb2b756c5f2d31e71f95cae9f01f869218 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Fri, 4 Nov 2016 08:31:43 +0100 Subject: [PATCH] tests: Reset output buffer in torture_crypto Signed-off-by: Andreas Schneider --- tests/unittests/torture_crypto.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/unittests/torture_crypto.c b/tests/unittests/torture_crypto.c index 7c8cf55b..7c4e554e 100644 --- a/tests/unittests/torture_crypto.c +++ b/tests/unittests/torture_crypto.c @@ -84,6 +84,7 @@ static void torture_crypto_aes256_cbc(void **state) iv ); + memset(output, '0', sizeof(output)); cipher.decrypt(&cipher, aes256_cbc_encrypted, output,