diff options
author | Rich Salz <rsalz@akamai.com> | 2016-01-31 01:48:09 +0100 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2016-01-31 02:19:19 +0100 |
commit | 769adcfe8b27d696d3e221427d82f365919917a8 (patch) | |
tree | 1a1aee556859d70845c2e5a1b09deacb3684357e /crypto/cryptlib.c | |
parent | Remove extra level of indirection. (diff) | |
download | openssl-769adcfe8b27d696d3e221427d82f365919917a8.tar.xz openssl-769adcfe8b27d696d3e221427d82f365919917a8.zip |
GH102: Extra volatile avoids GCC bug
Reviewed-by: Kurt Roeckx <kurt@openssl.org>
Diffstat (limited to 'crypto/cryptlib.c')
-rw-r--r-- | crypto/cryptlib.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/crypto/cryptlib.c b/crypto/cryptlib.c index 9473799a48..d31734068b 100644 --- a/crypto/cryptlib.c +++ b/crypto/cryptlib.c @@ -465,7 +465,9 @@ void OpenSSLDie(const char *file, int line, const char *assertion) #endif } -int CRYPTO_memcmp(const volatile void *in_a, const volatile void *in_b, size_t len) +int CRYPTO_memcmp(const volatile void * volatile in_a, + const volatile void * volatile in_b, + size_t len) { size_t i; const volatile unsigned char *a = in_a; |