mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-05 16:00:05 +01:00
Fix check for bitlk iv overflow in crypto backend.
This commit is contained in:
@@ -277,7 +277,7 @@ int crypt_bitlk_decrypt_key_kernel(const void *key, size_t key_length,
|
||||
if (length + tag_length > sizeof(buffer))
|
||||
return -EINVAL;
|
||||
|
||||
if (iv_length > sizeof(ccm_iv) - 1)
|
||||
if (iv_length > sizeof(ccm_iv) - 2)
|
||||
return -EINVAL;
|
||||
|
||||
r = _crypt_cipher_init(&c, key, key_length, tag_length, &sa);
|
||||
|
||||
Reference in New Issue
Block a user