verity: fix hash offset 64bit values

Hash offset is 64bit values, for some reason it is
used as size_t on one place. Fix it by properly use uint64_t.

Fixes: #792
This commit is contained in:
Milan Broz
2023-01-17 13:12:36 +01:00
parent 7bbfccbbfa
commit 0622b51634

View File

@@ -933,7 +933,7 @@ out:
static int _crypt_load_verity(struct crypt_device *cd, struct crypt_params_verity *params)
{
int r;
size_t sb_offset = 0;
uint64_t sb_offset = 0;
r = init_crypto(cd);
if (r < 0)