From: Andy Polyakov Date: Sun, 22 Feb 2015 18:13:35 +0000 (+0100) Subject: evp/evp_test.c: avoid crashes when referencing uninitialized pointers. X-Git-Tag: OpenSSL_1_1_0-pre1~1623 X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff_plain;h=1526fea5441f0b6256b298b30ba9fcb3e3ecd930 evp/evp_test.c: avoid crashes when referencing uninitialized pointers. For some reason failure surfaced on ARM platforms. Reviewed-by: Matt Caswell --- diff --git a/crypto/evp/evp_test.c b/crypto/evp/evp_test.c index 7706ee135e..fb8ac4fd9b 100644 --- a/crypto/evp/evp_test.c +++ b/crypto/evp/evp_test.c @@ -454,6 +454,8 @@ int main(int argc, char **argv) ERR_load_crypto_strings(); OpenSSL_add_all_algorithms(); + + memset(&t,0,sizeof(t)); t.meth = NULL; t.public = NULL; t.private = NULL;