Skip to content

Commit

Permalink
Ensure Imagemagick is initialized before setting limits
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy Collins committed Apr 8, 2021
1 parent 6dadf2e commit c17bfac
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/mod_dims.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c17bfac

Please sign in to comment.