]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
fs/zfscrypt: Add missing explicit cast.
authorVladimir Serbinenko <phcoder@gmail.com>
Tue, 27 Jan 2015 15:35:37 +0000 (16:35 +0100)
committerVladimir Serbinenko <phcoder@gmail.com>
Tue, 27 Jan 2015 15:35:37 +0000 (16:35 +0100)
Found by: Coverity scan.

grub-core/fs/zfs/zfscrypt.c

index 88dae72efc4d83435773c5690bb3678650ee9b70..91a0af64ce12d5fec567f15286d136981b5945c0 100644 (file)
@@ -238,7 +238,7 @@ grub_gcm_decrypt (grub_crypto_cipher_handle_t cipher,
       grub_crypto_xor (out + 16 * i, in + 16 * i, mul, csize);
     }
   for (j = 0; j < 8; j++)
-    mac[15 - j] ^= ((psize * 8) >> (8 * j));
+    mac[15 - j] ^= ((((grub_uint64_t) psize) * 8) >> (8 * j));
   grub_gcm_mul (mac, h);
 
   if (mac_out)