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.

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;
     }
_______________________________________________
openssl-dev mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev

Reply via email to