]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Sat, 3 Jan 2015 18:43:18 +0000 (18:43 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Sat, 3 Jan 2015 18:43:18 +0000 (18:43 +0000)
MagickCore/resource.c
config/policy.xml

index d2c3166b4c2426b87a7b19e75e385c408895202f..7cc6379b8e76e5f7780dd17599e58a01e7e5328d 100644 (file)
@@ -114,8 +114,8 @@ static ResourceInfo
     MagickULLConstant(0),              /* initial thread */
     MagickULLConstant(0),              /* initial throttle */
     MagickULLConstant(0),              /* initial time */
-    MagickULLConstant(10000000),       /* width limit */
-    MagickULLConstant(10000000),       /* height limit */
+    (LONG_MAX/(5*sizeof(Quantum))),    /* width limit */
+    (LONG_MAX/(5*sizeof(Quantum))),    /* height limit */
     MagickULLConstant(3072)*1024*1024, /* area limit */
     MagickULLConstant(1536)*1024*1024, /* memory limit */
     MagickULLConstant(3072)*1024*1024, /* map limit */
index 9a3bf0f120a30e8fcb3146cea006283d84ce1718..b4ee2d23acc68efa3c08c26d74a494d5b972a534 100644 (file)
@@ -48,8 +48,8 @@
   <!-- <policy domain="resource" name="temporary-path" value="/tmp"/> -->
   <!-- <policy domain="resource" name="memory" value="2GiB"/> -->
   <!-- <policy domain="resource" name="map" value="4GiB"/> -->
-  <!-- <policy domain="resource" name="width" value="100MP"/> -->
-  <!-- <policy domain="resource" name="height" value="100MP"/> -->
+  <!-- <policy domain="resource" name="width" value="10MP"/> -->
+  <!-- <policy domain="resource" name="height" value="10MP"/> -->
   <!-- <policy domain="resource" name="area" value="1GB"/> -->
   <!-- <policy domain="resource" name="disk" value="16EB"/> -->
   <!-- <policy domain="resource" name="file" value="768"/> -->