diff options
author | Tomas Mraz <tmraz@fedoraproject.org> | 2016-08-10 15:21:32 +0200 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2016-08-16 00:30:45 +0200 |
commit | e7e5d608fb6cef9929a2cf56d72fa7e236ca7573 (patch) | |
tree | d55b7a491b1a98cf2a6813950374d4523f408e58 /engines | |
parent | Fix af_alg engine failure on 32 bit architectures. (diff) | |
download | openssl-e7e5d608fb6cef9929a2cf56d72fa7e236ca7573.tar.xz openssl-e7e5d608fb6cef9929a2cf56d72fa7e236ca7573.zip |
Add a comment for the added cast with explanation.
Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
Diffstat (limited to 'engines')
-rw-r--r-- | engines/afalg/e_afalg.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/afalg/e_afalg.c b/engines/afalg/e_afalg.c index 456ffda9aa..1766230ce8 100644 --- a/engines/afalg/e_afalg.c +++ b/engines/afalg/e_afalg.c @@ -230,6 +230,10 @@ int afalg_fin_cipher_aio(afalg_aio *aio, int sfd, unsigned char *buf, memset(cb, '\0', sizeof(*cb)); cb->aio_fildes = sfd; cb->aio_lio_opcode = IOCB_CMD_PREAD; + /* + * The pointer has to be converted to unsigned value first to avoid + * sign extension on cast to 64 bit value + */ cb->aio_buf = (uint64_t)(unsigned long)buf; cb->aio_offset = 0; cb->aio_data = 0; |