[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: /srv/bzr/emacs/trunk r107264: shr.el (shr-rescale-image): Allow view
Re: /srv/bzr/emacs/trunk r107264: shr.el (shr-rescale-image): Allow viewing large images.
Mon, 13 Feb 2012 19:57:40 +0000
Gnus/5.13 (Gnus v5.13) Emacs/24.0 (windows-nt)
On Mon 13 Feb 2012, Stefan Monnier wrote:
>> (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.
It would help that porpose if it had some documentation:
max-image-size's value is 6.0
Not documented as a variable.