dcavalca / rpms / rpm

Forked from rpms/rpm 2 years ago
Clone

Blame rpm-4.14.3-bump-up-the-limit-of-signature-header-to-64MB.patch

James Antill ee2eaf
diff -up rpm-4.14.3/lib/header.c.orig rpm-4.14.3/lib/header.c
James Antill ee2eaf
--- rpm-4.14.3/lib/header.c.orig	2020-04-28 14:50:11.816399041 +0200
James Antill ee2eaf
+++ rpm-4.14.3/lib/header.c	2021-02-03 16:47:23.567245743 +0100
James Antill ee2eaf
@@ -1910,7 +1910,7 @@ rpmRC hdrblobRead(FD_t fd, int magic, in
James Antill ee2eaf
 
James Antill ee2eaf
     if (regionTag == RPMTAG_HEADERSIGNATURES) {
James Antill ee2eaf
 	il_max = 32;
James Antill ee2eaf
-	dl_max = 8192;
James Antill ee2eaf
+	dl_max = 64 * 1024 * 1024;
James Antill ee2eaf
     }
James Antill ee2eaf
 
James Antill ee2eaf
     memset(block, 0, sizeof(block));