Merge pull request #5222 from paul-elliott-arm/fix_test_suite_ssl

Fix test_suite_ssl compilation errors with GCC11
This commit is contained in:
Gilles Peskine 2021-11-25 22:02:43 +01:00 committed by GitHub
commit 161d661d90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -0,0 +1,3 @@
Bugfix
* Fix an uninitialized variable warning in test_suite_ssl.function with GCC
version 11.

View File

@ -2236,8 +2236,8 @@ exit:
void ssl_mock_sanity( )
{
enum { MSGLEN = 105 };
unsigned char message[MSGLEN];
unsigned char received[MSGLEN];
unsigned char message[MSGLEN] = { 0 };
unsigned char received[MSGLEN] = { 0 };
mbedtls_mock_socket socket;
mbedtls_mock_socket_init( &socket );