From 0c069792607179d7c61e85400106bb5d9ecce24b Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Fri, 18 Mar 2016 10:20:56 +0100 Subject: [PATCH] Verify at compile time that blake2b_param is packed as expected --- src/libsodium/crypto_generichash/blake2/ref/blake2b-ref.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libsodium/crypto_generichash/blake2/ref/blake2b-ref.c b/src/libsodium/crypto_generichash/blake2/ref/blake2b-ref.c index 7613fbe9..bffac865 100644 --- a/src/libsodium/crypto_generichash/blake2/ref/blake2b-ref.c +++ b/src/libsodium/crypto_generichash/blake2/ref/blake2b-ref.c @@ -156,6 +156,7 @@ int blake2b_init_param( blake2b_state *S, const blake2b_param *P ) size_t i; const uint8_t *p; + (void) sizeof(int[sizeof *P == 64 ? 1 : -1]); blake2b_init0( S ); p = ( const uint8_t * )( P );