[openssl-commits] [openssl] OpenSSL_1_0_2-stable update

Richard Levitte levitte at openssl.org
Wed Mar 14 10:54:30 UTC 2018


The branch OpenSSL_1_0_2-stable has been updated
       via  f1e2b8adbd84434a634b62a3dc0c0c7506a96ae2 (commit)
      from  e56585e3e950e98d7014476bea8bfe71b3ff0a1f (commit)


- Log -----------------------------------------------------------------
commit f1e2b8adbd84434a634b62a3dc0c0c7506a96ae2
Author: Richard Levitte <levitte at openssl.org>
Date:   Wed Mar 14 11:35:53 2018 +0100

    crypto/engine/eng_cryptodev.c: don't treat a void* like an array
    
    The void* needs to be cast to a char* first.
    
    Fixes #5614
    
    Reviewed-by: Tim Hudson <tjh at openssl.org>
    (Merged from https://github.com/openssl/openssl/pull/5615)

-----------------------------------------------------------------------

Summary of changes:
 crypto/engine/eng_cryptodev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/crypto/engine/eng_cryptodev.c b/crypto/engine/eng_cryptodev.c
index 7aae5ab..d8cac4b 100644
--- a/crypto/engine/eng_cryptodev.c
+++ b/crypto/engine/eng_cryptodev.c
@@ -1057,7 +1057,7 @@ static int crparam2bn(struct crparam *crp, BIGNUM *a)
         return (-1);
 
     for (i = 0; i < bytes; i++)
-        pd[i] = crp->crp_p[bytes - i - 1];
+        pd[i] = ((char *)crp->crp_p)[bytes - i - 1];
 
     BN_bin2bn(pd, bytes, a);
     free(pd);


More information about the openssl-commits mailing list