[openssl-dev] [openssl.org #4443] Re: VIA C7-D processor: Hang in 30-test_afalg.t

Viktor Dukhovni openssl-users at dukhovni.org
Fri Mar 18 03:52:30 UTC 2016


> On Mar 17, 2016, at 10:52 PM, Jeffrey Walton <noloader at gmail.com> wrote:
> 
> This is bad news... A 32-bit pointer's sign extension is
> implementation defined, which means it may as well be undefined
> behavior...
> 
> GCC sign extends. I think you can get around it with an intermediate
> cast to uintptr_t:
> 
>    cb->aio_buf = (uint64_t)(uintptr_t)buf;

The kernel sources seem to use a cast to (unsigned long) in the system
call definitions...  Someone else will have to figure out how this is
supposed to work...

-- 
	Viktor.



More information about the openssl-dev mailing list