[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Emacs-diffs] /srv/bzr/emacs/trunk r107264: shr.el (shr-rescale-imag

From: Stefan Monnier
Subject: Re: [Emacs-diffs] /srv/bzr/emacs/trunk r107264: shr.el (shr-rescale-image): Allow viewing large images.
Date: Mon, 13 Feb 2012 08:15:56 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux)

>  (defun shr-rescale-image (data)
> -  (let ((image (create-image data nil t :ascent 100)))
> +  (let* ((max-image-size 0)
> +      (image (create-image data nil t :ascent 100)))

The whole purpose of max-image-size was to avoid crashes and
denial-of-service, for example when viewing incorrectly-labeled images.
So it's especially important for SHR which will display images
downloaded from anywhere.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]