From c17bfac77af6421194b8f23bfdf19e800c5bc618 Mon Sep 17 00:00:00 2001 From: Jeremy Collins Date: Thu, 8 Apr 2021 16:56:57 -0400 Subject: [PATCH] Ensure Imagemagick is initialized before setting limits --- src/mod_dims.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mod_dims.c b/src/mod_dims.c index cd2c45d..cbfac79 100755 --- a/src/mod_dims.c +++ b/src/mod_dims.c @@ -1837,6 +1837,7 @@ dims_init(apr_pool_t *p, apr_pool_t *plog, apr_pool_t* ptemp, server_rec *s) ap_add_version_component(p, "mod_dims/" MODULE_VERSION); + MagickWandGenesis(); MagickSetResourceLimit(AreaResource, config->area_size); MagickSetResourceLimit(DiskResource, config->disk_size); MagickSetResourceLimit(MemoryResource, config->memory_size);