提交 3f8d1216 编写于 作者: T Tomas Mraz 提交者: Matt Caswell

Fix af_alg engine failure on 32 bit architectures.

Add extra cast to unsigned long to avoid sign extension when
converting pointer to 64 bit data.
Reviewed-by: NTim Hudson <tjh@openssl.org>
Reviewed-by: NMatt Caswell <matt@openssl.org>
上级 bb982ce7
......@@ -230,7 +230,7 @@ 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;
cb->aio_buf = (uint64_t)buf;
cb->aio_buf = (uint64_t)(unsigned long)buf;
cb->aio_offset = 0;
cb->aio_data = 0;
cb->aio_nbytes = len;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册