From 4bac96a8c817beda37448f9b8c662162bb619981 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bart=C5=82omiej=20Piotrowski?= Date: Thu, 25 May 2023 11:43:05 +0200 Subject: [PATCH] Increase the metadata size limit to 128MB Flathub has hit the 10MB limit in 2022, and we had to drop less popular CPU architectures from the main summary to subsummaries, effectively cutting off users running too old Flatpak version. Despite that, the main summary containing only x86_64 is already at 7MB. As this is eventually going to happen to subsummaries as well, preemptively bump the limit 12 times. It takes between 2 and 3 years for a change like this to roll out across Linux distributions so the best time for this was yesterday. fixes #2715 --- src/libostree/ostree-core.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libostree/ostree-core.h b/src/libostree/ostree-core.h index b18d9e16..12a1e48a 100644 --- a/src/libostree/ostree-core.h +++ b/src/libostree/ostree-core.h @@ -35,7 +35,7 @@ G_BEGIN_DECLS * objects). This is an arbitrary number intended to mitigate disk space * exhaustion attacks. */ -#define OSTREE_MAX_METADATA_SIZE (10 * 1024 * 1024) +#define OSTREE_MAX_METADATA_SIZE (128 * 1024 * 1024) /** * OSTREE_MAX_METADATA_WARN_SIZE: -- 2.30.2