[openssl-dev] Why is `volatile` used in MOD_EXP_CTIME_COPY_FROM_PREBUF?

Brian Smith brian at briansmith.org
Wed May 25 22:52:17 UTC 2016


See
https://github.com/openssl/openssl/commit/d6482a82bc2228327aa4ba98aeeecd9979542a31#diff-3aca3afd18ad75a8f6a09a9860bc6ef5R631

+ volatile BN_ULONG *table = (volatile BN_ULONG *)buf;

Why is `volatile` used here? Is it to work around the effective type
(strict aliasing) violations or for some other reason? I think it would be
good to document this, or better, find a way to avoid needing to use
`volatile` in the first place.

Thanks,
Brian
-- 
https://briansmith.org/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mta.openssl.org/pipermail/openssl-dev/attachments/20160525/d47b29fe/attachment.html>


More information about the openssl-dev mailing list