mirror of
https://github.com/openssl/openssl.git
synced 2024-11-21 01:15:20 +08:00
GH102: Extra volatile avoids GCC bug
Reviewed-by: Kurt Roeckx <kurt@openssl.org>
This commit is contained in:
parent
9716b0b9de
commit
769adcfe8b
@ -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;
|
||||
|
@ -542,7 +542,9 @@ int OPENSSL_gmtime_diff(int *pday, int *psec,
|
||||
* into a defined order as the return value when a != b is undefined, other
|
||||
* than to be non-zero.
|
||||
*/
|
||||
int CRYPTO_memcmp(const volatile void *a, const volatile void *b, size_t len);
|
||||
int CRYPTO_memcmp(const volatile void * volatile in_a,
|
||||
const volatile void * volatile in_b,
|
||||
size_t len);
|
||||
|
||||
/* BEGIN ERROR CODES */
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user