[gimp] Issue #1490 - Crash when flattening an XCF file



commit 367399e5c018b379cf69a234c5027659180ee676
Author: Ell <ell_se yahoo com>
Date:   Fri May 25 20:21:24 2018 -0400

    Issue #1490 - Crash when flattening an XCF file
    
    The default stack size for new threads on MacOS is 512 KiB, making
    our 512 KiB limit for stack-allocated buffers in
    gimp_operation_layer_mode_real_process() too high.  Lower it to
    256 KiB.

 app/operations/layer-modes/gimpoperationlayermode.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/app/operations/layer-modes/gimpoperationlayermode.c 
b/app/operations/layer-modes/gimpoperationlayermode.c
index 0ae10196e7..407145271e 100644
--- a/app/operations/layer-modes/gimpoperationlayermode.c
+++ b/app/operations/layer-modes/gimpoperationlayermode.c
@@ -37,7 +37,7 @@
 /* the maximum number of samples to process in one go.  used to limit
  * the size of the buffers we allocate on the stack.
  */
-#define GIMP_COMPOSITE_BLEND_MAX_SAMPLES ((1 << 19) /* 0.5 MiB */  /      \
+#define GIMP_COMPOSITE_BLEND_MAX_SAMPLES ((1 << 18) /* 256 KiB */  /      \
                                           16 /* bytes per pixel */ /      \
                                           2  /* max number of buffers */)
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]