Increase the metadata size limit to 128MB
authorBartłomiej Piotrowski <b@bpiotrowski.pl>
Thu, 25 May 2023 09:43:05 +0000 (11:43 +0200)
committerBartłomiej Piotrowski <b@bpiotrowski.pl>
Thu, 25 May 2023 09:49:54 +0000 (11:49 +0200)
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

index b18d9e16e577a05eb08b7a406816dc7088566196..12a1e48ab6a4d43ecf638389822c23e733e32ad7 100644 (file)
@@ -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: