From 566a62e785a28d47b439b643da5b14a20439fb19 Mon Sep 17 00:00:00 2001 From: Bryttanie House Date: Tue, 17 Jun 2025 10:56:55 -0400 Subject: [PATCH 1/2] increases default max xml size --- go.mod | 4 ++-- pkg/yum/repository.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index e85ceff..e150afd 100644 --- a/go.mod +++ b/go.mod @@ -6,17 +6,17 @@ require ( github.com/ProtonMail/go-crypto v1.0.0 github.com/h2non/filetype v1.1.3 github.com/klauspost/compress v1.17.9 + github.com/mitchellh/mapstructure v1.5.0 github.com/stretchr/testify v1.9.0 github.com/ulikunitz/xz v0.5.12 + gopkg.in/yaml.v3 v3.0.1 ) require ( github.com/cloudflare/circl v1.3.9 // indirect github.com/davecgh/go-spew v1.1.1 // indirect - github.com/mitchellh/mapstructure v1.5.0 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect github.com/stretchr/objx v0.5.2 // indirect golang.org/x/crypto v0.31.0 // indirect golang.org/x/sys v0.28.0 // indirect - gopkg.in/yaml.v3 v3.0.1 // indirect ) diff --git a/pkg/yum/repository.go b/pkg/yum/repository.go index 82249ea..0bfcb30 100644 --- a/pkg/yum/repository.go +++ b/pkg/yum/repository.go @@ -18,7 +18,7 @@ import ( ) // Max uncompressed XML file supported -const DefaultMaxXmlSize = int64(512 * 1024 * 1024) // 512 MB +const DefaultMaxXmlSize = int64(600 * 1024 * 1024) // 600 MB // Package metadata of a given package type Package struct { From 2ccb2afe0122a87ea608495a0c0516a4012db42d Mon Sep 17 00:00:00 2001 From: Bryttanie House Date: Wed, 18 Jun 2025 09:44:12 -0400 Subject: [PATCH 2/2] increase max to 1GB --- pkg/yum/repository.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/yum/repository.go b/pkg/yum/repository.go index 0bfcb30..d4a1acf 100644 --- a/pkg/yum/repository.go +++ b/pkg/yum/repository.go @@ -18,7 +18,7 @@ import ( ) // Max uncompressed XML file supported -const DefaultMaxXmlSize = int64(600 * 1024 * 1024) // 600 MB +const DefaultMaxXmlSize = int64(1024 * 1024 * 1024) // 1 GB // Package metadata of a given package type Package struct {