dcavalca / rpms / rpm

Forked from rpms/rpm 2 years ago
Clone

Blame SOURCES/rpm-4.11.x-bump-up-the-limit-of-signature-header-to-64MB.patch

f51f74
diff -up rpm-4.11.3/lib/signature.c.orig rpm-4.11.3/lib/signature.c
f51f74
--- rpm-4.11.3/lib/signature.c.orig	2021-09-17 09:47:03.635252057 +0200
f51f74
+++ rpm-4.11.3/lib/signature.c	2021-09-17 09:50:12.172825113 +0200
f51f74
@@ -102,7 +102,7 @@ rpmRC rpmReadSignature(FD_t fd, Header *
f51f74
 	goto exit;
f51f74
     }
f51f74
     dl = ntohl(block[3]);
f51f74
-    if (dl < 0 || dl > 8192) {
f51f74
+    if (dl < 0 || dl > 64 * 1024 * 1024) {
f51f74
 	rasprintf(&buf, 
f51f74
 		  _("sigh data: BAD, no. of  bytes(%d) out of range\n"), dl);
f51f74
 	goto exit;