diff options
author | Richard Levitte <levitte@openssl.org> | 2018-03-14 11:35:53 +0100 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2018-03-14 11:54:27 +0100 |
commit | f1e2b8adbd84434a634b62a3dc0c0c7506a96ae2 (patch) | |
tree | 2fc483f0b4505e89a31a16a8fd34da9df9ec124c /crypto/engine | |
parent | e56585e3e950e98d7014476bea8bfe71b3ff0a1f (diff) |
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@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/5615)
Diffstat (limited to 'crypto/engine')
-rw-r--r-- | crypto/engine/eng_cryptodev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/engine/eng_cryptodev.c b/crypto/engine/eng_cryptodev.c index 7aae5ab5fd..d8cac4bdfd 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); |