From 0622b51634ae138788230373a41d4f1fc6d4d088 Mon Sep 17 00:00:00 2001 From: Milan Broz Date: Tue, 17 Jan 2023 13:12:36 +0100 Subject: [PATCH] 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 --- lib/setup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/setup.c b/lib/setup.c index 3263578b..82d20495 100644 --- a/lib/setup.c +++ b/lib/setup.c @@ -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)