From: Ming Liu Date: Sat, 30 Sep 2017 03:15:16 +0000 (+0800) Subject: repo_rpmdb.c: increase MAX_HDR_CNT and MAX_HDR_DSIZE X-Git-Tag: 0.6.30~16^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F230%2Fhead;p=thirdparty%2Flibsolv.git repo_rpmdb.c: increase MAX_HDR_CNT and MAX_HDR_DSIZE We encountered 'corrupt rpm' issues when installing extreme big RPM packages like the kernel-devsrc package of Yocto project. It can be fixed by increasing MAX_HDR_CNT and MAX_HDR_DSIZE per test. Signed-off-by: Ming Liu --- diff --git a/ext/repo_rpmdb.c b/ext/repo_rpmdb.c index c7000a96..70008359 100644 --- a/ext/repo_rpmdb.c +++ b/ext/repo_rpmdb.c @@ -170,8 +170,8 @@ #define MAX_SIG_CNT 0x100000 #define MAX_SIG_DSIZE 0x100000 -#define MAX_HDR_CNT 0x100000 -#define MAX_HDR_DSIZE 0x2000000 +#define MAX_HDR_CNT 0x200000 +#define MAX_HDR_DSIZE 0x4000000 typedef struct rpmhead { int cnt;