]> granicus.if.org Git - imagemagick/commitdiff
...
authorCristy <urban-warrior@imagemagick.org>
Thu, 28 Jun 2018 00:00:17 +0000 (20:00 -0400)
committerCristy <urban-warrior@imagemagick.org>
Thu, 28 Jun 2018 00:00:17 +0000 (20:00 -0400)
coders/jpeg.c

index d2d073a1195f16cc2a307c796b182455a64d02bd..c407f01ae1f9228b1f8e6cb7360e5e837e22a649 100644 (file)
@@ -1129,6 +1129,8 @@ static Image *ReadJPEGImage(const ImageInfo *image_info,
     }
   jpeg_info.client_data=(void *) &error_manager;
   jpeg_create_decompress(&jpeg_info);
+  if (GetMaxMemoryRequest() != ~0UL)
+    jpeg_info.mem->max_memory_to_use=(long) GetMaxMemoryRequest();
   JPEGSourceManager(&jpeg_info,image);
   jpeg_set_marker_processor(&jpeg_info,JPEG_COM,ReadComment);
   option=GetImageOption(image_info,"profile:skip");