aboutsummaryrefslogtreecommitdiff
path: root/graphics/gegl/files/patch-08084a6
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/gegl/files/patch-08084a6')
-rw-r--r--graphics/gegl/files/patch-08084a633
1 files changed, 33 insertions, 0 deletions
diff --git a/graphics/gegl/files/patch-08084a6 b/graphics/gegl/files/patch-08084a6
new file mode 100644
index 000000000000..b1b2bb58db0e
--- /dev/null
+++ b/graphics/gegl/files/patch-08084a6
@@ -0,0 +1,33 @@
+From 08084a6de9e6d4ee665addf3b0b8587f7f639420 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?=C3=98yvind=20Kol=C3=A5s?= <pippin@gimp.org>
+Date: Mon, 8 Jul 2019 18:45:33 +0200
+Subject: [PATCH] gegl: use uint64_t for memory computations
+
+This ensures we avoid overflow in case PAE lets 32bit builds know of more
+memory than a single process can acccess. See issue #176.
+---
+ gegl/gegl-config.c | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/gegl/gegl-config.c b/gegl/gegl-config.c
+index 9f774514d..1b6fc25e8 100644
+--- gegl/gegl-config.c
++++ gegl/gegl-config.c
+@@ -230,10 +230,10 @@ gegl_config_class_init (GeglConfigClass *klass)
+ G_PARAM_READWRITE));
+
+ {
+- long default_tile_cache_size = 1024l * 1024 * 1024;
+- long mem_total = default_tile_cache_size;
+- long mem_min = 512 << 20; // 512mb
+- long mem_available = mem_min;
++ uint64_t default_tile_cache_size = 1024l * 1024 * 1024;
++ uint64_t mem_total = default_tile_cache_size;
++ uint64_t mem_min = 512 << 20; // 512mb
++ uint64_t mem_available = mem_min;
+
+ #ifdef G_OS_WIN32
+ # if defined(_MSC_VER) && (_MSC_VER <= 1200)
+--
+2.21.0
+