From 8f6c6867c8168625be8765d7424d53a18aec32cf Mon Sep 17 00:00:00 2001 From: Anders Jonsson Date: Mon, 24 Feb 2025 13:37:31 +0100 Subject: [PATCH] plug-ins: restrict GIH max dimensions to GIMP_PIXPIPE_MAXDIM In 06bd1f1289a6fb229d656acc15b981893f84e421 the max number of dimensions was set to 1000, but the plug-in runs into a segfault when dimension >4. The rest of the plug-in uses GIMP_PIXPIPE_MAXDIM as max (4), so use it for the dimension argument as well. --- plug-ins/common/file-gih.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plug-ins/common/file-gih.c b/plug-ins/common/file-gih.c index a6b9363115..b8b89dc2fc 100644 --- a/plug-ins/common/file-gih.c +++ b/plug-ins/common/file-gih.c @@ -238,7 +238,7 @@ gih_create_procedure (GimpPlugIn *plug_in, gimp_procedure_add_int_aux_argument (procedure, "dimension", _("D_imension"), _("How many dimensions the animated brush has"), - 1, 1000, 1, + 1, GIMP_PIXPIPE_MAXDIM, 1, GIMP_PARAM_READWRITE); gimp_procedure_add_int32_array_aux_argument (procedure, "guides",