dissect-image: Log if verity signature partition is too large

This commit is contained in:
Daan De Meyer
2023-06-20 15:22:47 +02:00
parent 66130f0a55
commit d31f8e0cb8
+1 -1
View File
@@ -3196,7 +3196,7 @@ int dissected_image_load_verity_sig_partition(
return -EINVAL;
if (p->size > 4*1024*1024) /* Signature data cannot possible be larger than 4M, refuse that */
return -EFBIG;
return log_debug_errno(SYNTHETIC_ERRNO(EFBIG), "Verity signature partition is larger than 4M, refusing.");
buf = new(char, p->size+1);
if (!buf)