[openssl-dev] [openssl.org #3688] Bug report; OpenSSL 1.0.2; Solaris 11.0; Sparc T4; evp_test core dumps

Andy Polyakov via RT rt at openssl.org
Sat Feb 7 20:06:26 UTC 2015


Hi,

> I am building openssl 1.0.2 on a number of platforms, and I am having
> problems on a virtual Solaris 11.0 machine running on a Sparc T4.
> The code builds fine, but the evp_test core dumps. Here are the last
> lines of output from the command (test/evp_test test/evptests.txt):
> 
> Testing cipher id-aes256-CCM(encrypt/decrypt)
> ...
> zsh: segmentation fault (core dumped)  ./test/evp_test test/evptests.txt

It's rather incredible that this slipped through. I've run the test many
times and 1.0.2 actually passes the test at the moment of this writing.
Well, I'm running on Linux, but it's circumstantial that it worked.
Verify that attached patch solves the problem.

-------------- next part --------------
diff --git a/crypto/evp/e_aes.c b/crypto/evp/e_aes.c
index 41844bc..8161b26 100644
--- a/crypto/evp/e_aes.c
+++ b/crypto/evp/e_aes.c
@@ -790,6 +790,8 @@ static int aes_t4_ccm_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key,
         default:
             return 0;
         }
+#  else
+        cctx->str = NULL;
 #  endif
         cctx->key_set = 1;
     }


More information about the openssl-dev mailing list