Adjusted malformed reference handling so a digest length mismatch (or missing digest data) returns AMDUAT_ASL_STORE_ERR_INTEGRITY instead of AMDUAT_ASL_STORE_ERR_UNSUPPORTED in asl_store_fs.c

This commit is contained in:
Carl Niklas Rydberg 2025-12-21 23:00:45 +01:00
parent 24ad51ff46
commit 3dda32b62c

View file

@ -529,7 +529,7 @@ static amduat_asl_store_error_t amduat_asl_store_fs_get_impl(
} }
if (ref.digest.len != hash_desc->digest_len || if (ref.digest.len != hash_desc->digest_len ||
(ref.digest.len != 0u && ref.digest.data == NULL)) { (ref.digest.len != 0u && ref.digest.data == NULL)) {
return AMDUAT_ASL_STORE_ERR_UNSUPPORTED; return AMDUAT_ASL_STORE_ERR_INTEGRITY;
} }
objects_path = NULL; objects_path = NULL;