mirror of https://github.com/GNOME/gimp.git
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:
parent
7990b1d57c
commit
367399e5c0
|
@ -37,7 +37,7 @@
|
||||||
/* the maximum number of samples to process in one go. used to limit
|
/* the maximum number of samples to process in one go. used to limit
|
||||||
* the size of the buffers we allocate on the stack.
|
* 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 */ / \
|
16 /* bytes per pixel */ / \
|
||||||
2 /* max number of buffers */)
|
2 /* max number of buffers */)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue