Set the size of an xattr_value that can be read to MAX_SIGNATURE_SIZE so that ML-DSA keys can also be read once enabled (and MAX_SIGNATURE_SIZE gets a larger value).
Signed-off-by: Stefan Berger <[email protected]> --- src/evmctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/evmctl.c b/src/evmctl.c index de67178..c8da495 100644 --- a/src/evmctl.c +++ b/src/evmctl.c @@ -347,7 +347,7 @@ static int calc_evm_hash(const char *file, const char *hash_algo, EVP_MD_CTX *pctx; unsigned int mdlen; char **xattrname; - char xattr_value[1024]; + char xattr_value[MAX_SIGNATURE_SIZE]; char list[1024]; ssize_t list_size; char uuid[16]; -- 2.53.0
