[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: image size limit?
From: |
Chong Yidong |
Subject: |
Re: image size limit? |
Date: |
Fri, 14 Oct 2005 09:02:54 -0400 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
> If we handle them one by one, it won't be terribly tricky.
> We could have one limit for memory size of an image, and another limit
> for the width and height as a ratio to those of the window.
> Then for each image type it would use whichever of those can be used.
Here's another idea. We impose a limit on the size of the image file
that Emacs is willing to read, say 50 megabytes. This should be easy
to implement and independent of image type.
At the same time, we implement image width and height limits in
x_create_x_image_and_pixmap, to deal with malicious images that
specify gigantic width and height sizes, even though the file size
isn't that big.
That should catch most of the problematic images, and we don't have to
fiddle with the individual image libraries.
- image size limit?, Chong Yidong, 2005/10/11
- Re: image size limit?, Chong Yidong, 2005/10/16
- Re: image size limit?, Richard M. Stallman, 2005/10/17
- Re: image size limit?, Chong Yidong, 2005/10/17
- Re: image size limit?, Richard M. Stallman, 2005/10/17
- Re: image size limit?, Stefan Monnier, 2005/10/18
- Re: image size limit?, Kim F. Storm, 2005/10/19
- Re: image size limit?, David Kastrup, 2005/10/19