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.
This commit is contained in:
Ell 2018-05-25 20:21:24 -04:00
parent 7990b1d57c
commit 367399e5c0
1 changed files with 1 additions and 1 deletions

View File

@ -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 */)