From 7c4a4860816ff284674bcd53c14b042f1eee4cd0 Mon Sep 17 00:00:00 2001 From: Thomas Daubney Date: Wed, 2 Mar 2022 16:47:49 +0000 Subject: [PATCH] Initialise buffer before use Commit initialises buf before it is used. Signed-off-by: Thomas Daubney --- tests/suites/test_suite_md.function | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/suites/test_suite_md.function b/tests/suites/test_suite_md.function index d918ce3b9..8cbdbe4c7 100644 --- a/tests/suites/test_suite_md.function +++ b/tests/suites/test_suite_md.function @@ -16,6 +16,7 @@ void mbedtls_md_process( ) unsigned char buf[150]; mbedtls_md_init( &ctx ); + memset( buf, 0, sizeof( buf ) ); /* * Very minimal testing of mbedtls_md_process, just make sure the various